diff options
author | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-21 15:44:15 +0100 |
---|---|---|
committer | Thomas Gubler <thomasgubler@gmail.com> | 2015-01-21 15:44:15 +0100 |
commit | 1628999361f5bd939ffd6312cae1d9e67698f3d4 (patch) | |
tree | 2cbeccfad348a4a84908f7a79a18114916868cdd /makefiles | |
parent | d1eac3510bdee3aa133a9eea248f882758dd29d0 (diff) | |
download | px4-firmware-1628999361f5bd939ffd6312cae1d9e67698f3d4.tar.gz px4-firmware-1628999361f5bd939ffd6312cae1d9e67698f3d4.tar.bz2 px4-firmware-1628999361f5bd939ffd6312cae1d9e67698f3d4.zip |
Revert "Fixes to make GCC 4.9 link"
This reverts commit 85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7.
Diffstat (limited to 'makefiles')
-rw-r--r-- | makefiles/toolchain_gnu-arm-eabi.mk | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index a8b4f1811..396980453 100644 --- a/makefiles/toolchain_gnu-arm-eabi.mk +++ b/makefiles/toolchain_gnu-arm-eabi.mk @@ -110,7 +110,9 @@ ARCHOPTIMIZATION = $(MAXOPTIMIZATION) \ -fno-strength-reduce \ -fomit-frame-pointer \ -funsafe-math-optimizations \ - -fno-builtin-printf + -fno-builtin-printf \ + -ffunction-sections \ + -fdata-sections # enable precise stack overflow tracking # note - requires corresponding support in NuttX @@ -164,8 +166,7 @@ ARCHWARNINGSXX = $(ARCHWARNINGS) \ # pull in *just* libm from the toolchain ... this is grody LIBM := $(shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libm.a) -LIBC := $(shell $(CC) $(ARCHCPUFLAGS) -print-file-name=libc.a) -EXTRA_LIBS += $(LIBM) $(LIBC) +EXTRA_LIBS += $(LIBM) # Flags we pass to the C compiler # |