Merge pull request #11883 from cladmi/pr/newib/remove_use_nano_specs_variable

sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS
This commit is contained in:
Marian Buschsieweke 2019-07-22 21:04:08 +02:00 committed by GitHub
commit 0729beb3b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View File

@ -144,8 +144,6 @@ include $(RIOTCPU)/cortexm_common/Makefile.include
# use the nano-specs of Newlib when available # use the nano-specs of Newlib when available
USEMODULE += newlib_nano USEMODULE += newlib_nano
export USE_NANO_SPECS = 1
# Avoid overriding the default rule: # Avoid overriding the default rule:
all: all:

View File

@ -72,13 +72,13 @@ ifneq (,$(filter arduino,$(USEMODULE)))
endif endif
ifneq (,$(filter printf_float,$(USEMODULE))) ifneq (,$(filter printf_float,$(USEMODULE)))
ifeq (1,$(USE_NANO_SPECS)) ifneq (,$(filter newlib_nano,$(USEMODULE)))
export LINKFLAGS += -u _printf_float export LINKFLAGS += -u _printf_float
endif endif
endif endif
ifneq (,$(filter scanf_float,$(USEMODULE))) ifneq (,$(filter scanf_float,$(USEMODULE)))
ifeq (1,$(USE_NANO_SPECS)) ifneq (,$(filter newlib_nano,$(USEMODULE)))
export LINKFLAGS += -u _scanf_float export LINKFLAGS += -u _scanf_float
endif endif
endif endif