Skip to content

Commit

Permalink
make\arm: Fix compiling against newlib-nano by also informing the com…
Browse files Browse the repository at this point in the history
…piler we compile with nano.specs
  • Loading branch information
DipSwitch committed Mar 17, 2016
1 parent 8f6d2f3 commit f5a194c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/msba2-common/Makefile.include
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions cpu/Makefile.include.cortexm_common
Expand Up @@ -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

Expand Down

0 comments on commit f5a194c

Please sign in to comment.