From 225b50c423bcb60e6b4c39f938832585347dbc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= Date: Mon, 22 Jul 2019 16:52:18 +0200 Subject: [PATCH] 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. --- sys/Makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/Makefile.include b/sys/Makefile.include index a9ab8095ef..bdc8147ff8 100644 --- a/sys/Makefile.include +++ b/sys/Makefile.include @@ -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