Skip to content

Commit 9cb8652

Browse files
keith-packardduynguyenxa
authored andcommitted
compiler/gcc: Add rx compiler flags to linker too
Many of these affect the library search path. Signed-off-by: Keith Packard <keithp@keithp.com>
1 parent cab63c6 commit 9cb8652

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/compiler/gcc/target_rx.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ list(APPEND TOOLCHAIN_C_FLAGS)
44
list(APPEND TOOLCHAIN_C_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections -m64bit-doubles)
55

66
list(APPEND TOOLCHAIN_LD_FLAGS)
7-
list(APPEND TOOLCHAIN_LD_FLAGS -mlittle-endian-data)
7+
list(APPEND TOOLCHAIN_LD_FLAGS -mlittle-endian-data -ffunction-sections -fdata-sections -m64bit-doubles)
88

99
if(NOT CONFIG_PICOLIBC)
1010
list(APPEND TOOLCHAIN_LD_FLAGS -lm)
1111
endif()
1212

1313
if(NOT CONFIG_FPU)
1414
list(APPEND TOOLCHAIN_C_FLAGS -nofpu)
15+
list(APPEND TOOLCHAIN_LD_FLAGS -nofpu)
1516
endif()
1617

1718
if("cross-compile" STREQUAL ${ZEPHYR_TOOLCHAIN_VARIANT})

0 commit comments

Comments
 (0)