Revert "Fixes to make GCC 4.9 link"

This reverts commit 85b6907e1d.
This commit is contained in:
Thomas Gubler
2015-01-21 15:44:15 +01:00
parent d1eac3510b
commit 1628999361
+4 -3
View File
@@ -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
#