aboutsummaryrefslogtreecommitdiff
path: root/makefiles
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2015-01-21 13:39:36 +0100
committerLorenz Meier <lm@inf.ethz.ch>2015-01-21 13:39:36 +0100
commit85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7 (patch)
tree5a7b2da331dbd4d3e01f3096a92bc7018eb6bc53 /makefiles
parentfd275147e4ae2efe2803e0bdc8f2c2929db70b5d (diff)
downloadpx4-firmware-85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7.tar.gz
px4-firmware-85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7.tar.bz2
px4-firmware-85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7.zip
Fixes to make GCC 4.9 link
Diffstat (limited to 'makefiles')
-rw-r--r--makefiles/toolchain_gnu-arm-eabi.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk
index 396980453..a8b4f1811 100644
--- a/makefiles/toolchain_gnu-arm-eabi.mk
+++ b/makefiles/toolchain_gnu-arm-eabi.mk
@@ -110,9 +110,7 @@ ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \
-fno-strength-reduce \
-fomit-frame-pointer \
-funsafe-math-optimizations \
- -fno-builtin-printf \
- -ffunction-sections \
- -fdata-sections
+ -fno-builtin-printf
# enable precise stack overflow tracking
# note - requires corresponding support in NuttX
@@ -166,7 +164,8 @@ ARCHWARNINGSXX = $(ARCHWARNINGS) \
# pull in *just* libm from the toolchain ... this is grody
LIBM := $(shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libm.a)
-EXTRA_LIBS += $(LIBM)
+LIBC := $(shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libc.a)
+EXTRA_LIBS += $(LIBM) $(LIBC)
# Flags we pass to the C compiler
#