Skip to content
Snippets Groups Projects
Commit f5a194cb authored by DipSwitch's avatar DipSwitch
Browse files

make\arm: Fix compiling against newlib-nano by also informing the compiler we...

make\arm: Fix compiling against newlib-nano by also informing the compiler we compile with nano.specs
parent 8f6d2f35
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ export LINKFLAGS += -Wl,--gc-sections ...@@ -30,6 +30,7 @@ export LINKFLAGS += -Wl,--gc-sections
# use the nano-specs of Newlib when available # use the nano-specs of Newlib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) 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 export LINKFLAGS += -specs=nano.specs -lc -lnosys
endif endif
......
...@@ -95,6 +95,7 @@ include $(RIOTCPU)/cortexm_common/Makefile.include ...@@ -95,6 +95,7 @@ include $(RIOTCPU)/cortexm_common/Makefile.include
# use the nano-specs of Newlib when available # use the nano-specs of Newlib when available
ifeq ($(shell $(LINK) -specs=nano.specs -E - 2>/dev/null >/dev/null </dev/null ; echo $$?),0) 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 export LINKFLAGS += -specs=nano.specs -lc -lnosys
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment