mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
make\arm: Fix compiling against newlib-nano by also informing the compiler we compile with nano.specs
This commit is contained in:
parent
8f6d2f3578
commit
f5a194cbe0
@ -30,6 +30,7 @@ export LINKFLAGS += -Wl,--gc-sections
|
||||
|
||||
# use the nano-specs of Newlib when available
|
||||
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
export CFLAGS += -specs=nano.specs
|
||||
export LINKFLAGS += -specs=nano.specs -lc -lnosys
|
||||
endif
|
||||
|
||||
|
@ -95,6 +95,7 @@ include $(RIOTCPU)/cortexm_common/Makefile.include
|
||||
|
||||
# use the nano-specs of Newlib when available
|
||||
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0)
|
||||
export CFLAGS += -specs=nano.specs
|
||||
export LINKFLAGS += -specs=nano.specs -lc -lnosys
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user