mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Fixes to make GCC 4.9 link
This commit is contained in:
@@ -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
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user