aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2016-01-05 22:01:51 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2016-01-05 22:01:51 +0100
commitef4a7bbe3a818e5166548d1ba5edee7713c66214 (patch)
treeb0ba8576af43c1a391f36c8b3ce12229d1399112 /cmake
parentec96951943921b57ef9c1e9dacb63e34716fe5b7 (diff)
downloadstm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.gz
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.bz2
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.tar.xz
stm32f103-playground-ef4a7bbe3a818e5166548d1ba5edee7713c66214.zip
o Seemingly working Mutexes.
o Dropping the privileged/unprivileged split for now.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/stm32.toolchain.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/stm32.toolchain.cmake b/cmake/stm32.toolchain.cmake
index e595ec9..8e380fe 100644
--- a/cmake/stm32.toolchain.cmake
+++ b/cmake/stm32.toolchain.cmake
@@ -22,12 +22,12 @@ set(CMAKE_SYSTEM_PROCESSOR arm)
set(CMAKE_CROSSCOMPILING 1)
set(TARGET_FLAGS "-mcpu=cortex-m3 -mthumb")
-set(BASE_FLAGS "-O3 -ffreestanding -nostdlib -Wall -Wextra -g -ffunction-sections -fdata-sections ${TARGET_FLAGS}")
+set(BASE_FLAGS "-O3 -ffreestanding -Wall -Wextra -g -ffunction-sections -fdata-sections ${TARGET_FLAGS}")
set(CMAKE_C_FLAGS "${BASE_FLAGS}" CACHE STRING "c flags")
set(CMAKE_CXX_FLAGS "${BASE_FLAGS} -fno-exceptions -fno-rtti -felide-constructors -std=c++14" CACHE STRING "c++ flags")
-set(LINKER_FLAGS "-O3 -Wl,--gc-sections ${TARGET_FLAGS}")
+set(LINKER_FLAGS "-O3 -nostdlib -Wl,--gc-sections ${TARGET_FLAGS}")
#set(LINKER_LIBS "-larm_cortexM4l_math -lm")
set(CMAKE_EXE_LINKER_FLAGS "${LINKER_FLAGS}" CACHE STRING "linker flags" FORCE)