altos: Move from newlib-nano to picolibc
[fw/altos] / src / Makefile.defs
index 6df0c3fe2ac42edba14cb20796e2cda32549d43c..db9a445c89336810519a947cbf228034a4e26452 100644 (file)
@@ -20,10 +20,11 @@ WARN_FLAGS=-Wall -Wextra -Werror -Wcast-align \
 
 OPT=-Os
 
-NEWLIB_CFLAGS= \
-       -ffreestanding -nostdlib \
-       -DNEWLIB_INTEGER_PRINTF_SCANF \
-       -isystem $(NEWLIB_NANO)/arm-none-eabi/include
+PICOLIBC_PRINTF_CFLAGS =       -DPICOLIBC_INTEGER_PRINTF_SCANF
+
+PICOLIBC_CFLAGS= \
+       -specs=picolibc.specs \
+       $(PICOLIBC_PRINTF_CFLAGS)
 
 AO_CFLAGS=\
        -std=gnu99 \