summaryrefslogtreecommitdiff
path: root/toolchain/common
diff options
context:
space:
mode:
authorgkostka <kostka.grzegorz@gmail.com>2014-06-03 10:59:40 +0000
committergkostka <kostka.grzegorz@gmail.com>2014-06-03 10:59:40 +0000
commit902a5091914e0c77c478101e4cdeaea84aff02e6 (patch)
treedef8b784eeb7225ad51e7b6988554e035dc0aaf5 /toolchain/common
parentcbf74d6c41613815366711a6a5322033c7c0ccc1 (diff)
Build system improvement.
Diffstat (limited to 'toolchain/common')
-rw-r--r--toolchain/common/arm-none-eabi.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/toolchain/common/arm-none-eabi.cmake b/toolchain/common/arm-none-eabi.cmake
index b5c9e78..f7e130e 100644
--- a/toolchain/common/arm-none-eabi.cmake
+++ b/toolchain/common/arm-none-eabi.cmake
@@ -10,7 +10,7 @@ set(SIZE arm-none-eabi-size)
set(CMAKE_C_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -std=gnu99 -fdata-sections -ffunction-sections" CACHE INTERNAL "c compiler flags")
set(CMAKE_CXX_FLAGS "${MCPU_FLAGS} ${VFP_FLAGS} -Wall -fno-builtin -fdata-sections -ffunction-sections" CACHE INTERNAL "cxx compiler flags")
set(CMAKE_ASM_FLAGS "${MCPU_FLAGS} -x assembler-with-cpp" CACHE INTERNAL "asm compiler flags")
-set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} -nostartfiles -Wl,--gc-sections ${SIM_FLAGS}" CACHE INTERNAL "exe link flags")
+set(CMAKE_EXE_LINKER_FLAGS "${MCPU_FLAGS} ${LD_FLAGS} -Wl,--gc-sections" CACHE INTERNAL "exe link flags")