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:
commit
0729beb3b2
@ -144,8 +144,6 @@ include $(RIOTCPU)/cortexm_common/Makefile.include
|
||||
|
||||
# use the nano-specs of Newlib when available
|
||||
USEMODULE += newlib_nano
|
||||
export USE_NANO_SPECS = 1
|
||||
|
||||
# Avoid overriding the default rule:
|
||||
all:
|
||||
|
||||
|
||||
@ -72,13 +72,13 @@ ifneq (,$(filter arduino,$(USEMODULE)))
|
||||
endif
|
||||
|
||||
ifneq (,$(filter printf_float,$(USEMODULE)))
|
||||
ifeq (1,$(USE_NANO_SPECS))
|
||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||
export LINKFLAGS += -u _printf_float
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq (,$(filter scanf_float,$(USEMODULE)))
|
||||
ifeq (1,$(USE_NANO_SPECS))
|
||||
ifneq (,$(filter newlib_nano,$(USEMODULE)))
|
||||
export LINKFLAGS += -u _scanf_float
|
||||
endif
|
||||
endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user