Fixes to make GCC 4.9 link

This commit is contained in:
Lorenz Meier
2015-01-21 13:39:36 +01:00
parent fd275147e4
commit 85b6907e1d

View File

@@ -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
#