1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/Makefile.include: check for newlib_nano instead of USE_NANO_SPECS

Check for the usage of `newlib_nano` module instead of the
`USE_NANO_SPECS` variable.

This allows also benefiting from the `printf_float` and `scanf_float`
behaviour on `arm7` and `riscv` cpus.
This commit is contained in:
Gaëtan Harter 2019-07-22 16:52:18 +02:00
parent 294fb38381
commit 225b50c423
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -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