shithub: lwext4

Download patch

ref: 902a5091914e0c77c478101e4cdeaea84aff02e6
parent: cbf74d6c41613815366711a6a5322033c7c0ccc1
author: gkostka <kostka.grzegorz@gmail.com>
date: Tue Jun 3 06:59:40 EDT 2014

Build system improvement.

--- a/toolchain/arm-sim.cmake
+++ b/toolchain/arm-sim.cmake
@@ -4,6 +4,6 @@
 
 set(MCPU_FLAGS "")
 set(VFP_FLAGS "")
-set(SIM_FLAGS "--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lm -lrdimon -Wl,--end-group")
+set(LD_FLAGS "--specs=rdimon.specs -Wl,--start-group -lgcc -lc -lm -lrdimon -Wl,--end-group")
 
 include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
--- a/toolchain/common/arm-none-eabi.cmake
+++ b/toolchain/common/arm-none-eabi.cmake
@@ -10,7 +10,7 @@
 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")
 
 
 
--- a/toolchain/cortex-m0.cmake
+++ b/toolchain/cortex-m0.cmake
@@ -4,5 +4,6 @@
 
 set(MCPU_FLAGS "-mthumb -mcpu=cortex-m0")
 set(VFP_FLAGS "")
+set(LD_FLAGS "-nostartfiles")
 
 include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
--- a/toolchain/cortex-m3.cmake
+++ b/toolchain/cortex-m3.cmake
@@ -4,6 +4,6 @@
 
 set(MCPU_FLAGS "-mthumb -mcpu=cortex-m3")
 set(VFP_FLAGS "")
-
+set(LD_FLAGS "-nostartfiles")
 
 include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file
--- a/toolchain/cortex-m4.cmake
+++ b/toolchain/cortex-m4.cmake
@@ -4,6 +4,6 @@
 
 set(MCPU_FLAGS "-mthumb -mcpu=cortex-m4")
 set(VFP_FLAGS "-mfloat-abi=hard -mfpu=fpv4-sp-d16")
-
+set(LD_FLAGS "-nostartfiles")
 
 include(${CMAKE_CURRENT_LIST_DIR}/common/arm-none-eabi.cmake)
\ No newline at end of file