[2/3] picolibc: Add newlib and picolibc as default C library choices
Commit Message
Signed-off-by: Keith Packard <keithp@keithp.com>
---
gcc/config.gcc | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
@@ -639,7 +639,7 @@ case ${target} in
esac
# Common C libraries.
-tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4"
+tm_defines="$tm_defines LIBC_GLIBC=1 LIBC_UCLIBC=2 LIBC_BIONIC=3 LIBC_MUSL=4 LIBC_NEWLIB=5 LIBC_PICOLIBC=6"
default_libc=""
@@ -5878,6 +5878,12 @@ bionic)
musl)
default_libc=LIBC_MUSL
;;
+newlib)
+ default_libc=LIBC_NEWLIB
+ ;;
+picolibc)
+ default_libc=LIBC_PICOLIBC
+ ;;
esac
case "$default_libc" in