diff options
author | Keith Packard <keithp@keithp.com> | 2019-02-21 19:28:14 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2019-02-21 19:40:08 -0800 |
commit | 655c5d2c1124182ba336db368474cf4de0b9ce9d (patch) | |
tree | 5f0f314c322fe01cda1177833beabacce0648a37 /src | |
parent | 3310b22e28d953a6569cd50e83f91c25577424a5 (diff) |
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 <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.defs | 6 |
1 files 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 \ |