From: Keith Packard Date: Fri, 22 Feb 2019 03:28:14 +0000 (-0800) Subject: altos: Allow applications to override newlib printf selection X-Git-Tag: 1.9.1~1^2~115^2 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=655c5d2c1124182ba336db368474cf4de0b9ce9d 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 --- 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 \