diff options
-rw-r--r-- | makefiles/toolchain_gnu-arm-eabi.mk | 7 |
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 # |