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
|
# 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:
|
||||||
|
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user