From 655c5d2c1124182ba336db368474cf4de0b9ce9d Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Thu, 21 Feb 2019 19:28:14 -0800 Subject: [PATCH] altos: Allow applications to override newlib printf selection Re-defining NEWLIB_PRINTF_CFLAGS will allow applications to select printf with floating point support if desired. Signed-off-by: Keith Packard --- src/Makefile.defs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Makefile.defs b/src/Makefile.defs index 6df0c3fe..d52cc706 100644 --- a/src/Makefile.defs +++ b/src/Makefile.defs @@ -20,10 +20,12 @@ WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \ OPT=-Os +NEWLIB_PRINTF_CFLAGS = -DNEWLIB_INTEGER_PRINTF_SCANF + NEWLIB_CFLAGS= \ -ffreestanding -nostdlib \ - -DNEWLIB_INTEGER_PRINTF_SCANF \ - -isystem $(NEWLIB_NANO)/arm-none-eabi/include + -isystem $(NEWLIB_NANO)/arm-none-eabi/include \ + $(NEWLIB_PRINTF_CFLAGS) AO_CFLAGS=\ -std=gnu99 \ -- 2.30.2