1
0
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:
DipSwitch 2016-03-13 19:42:27 +01:00
parent 8f6d2f3578
commit f5a194cbe0
2 changed files with 2 additions and 0 deletions

View File

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

View File

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