From 85b6907e1db1a6af88fe469e8e08dbd0a9d7a2a7 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 21 Jan 2015 13:39:36 +0100 Subject: [PATCH] Fixes to make GCC 4.9 link --- makefiles/toolchain_gnu-arm-eabi.mk | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/makefiles/toolchain_gnu-arm-eabi.mk b/makefiles/toolchain_gnu-arm-eabi.mk index 3969804535..a8b4f18110 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 #