# HG changeset patch # User "Yann E. MORIN" # Date 1287789680 -7200 # Node ID 9cd8ee461fd0052b052089ef54659d30f93799d8 # Parent c1fe0639585a261cfd2521d6e22b19ba37b32a77 libc/newlib: add option to compile support for IOs on C99 formats Signed-off-by: "Yann E. MORIN" diff -r c1fe0639585a -r 9cd8ee461fd0 config/libc/newlib.in.2 --- a/config/libc/newlib.in.2 Sat Oct 23 00:53:41 2010 +0200 +++ b/config/libc/newlib.in.2 Sat Oct 23 01:21:20 2010 +0200 @@ -1,5 +1,12 @@ # newlib second-part options +config LIBC_NEWLIB_IO_C99FMT + bool + prompt "Enable IOs on C99 formats" + default n + help + Enable support for IOs on C99 formats. + config LIBC_NEWLIB_IO_LL bool prompt "Enable IOs on long long" diff -r c1fe0639585a -r 9cd8ee461fd0 scripts/build/libc/newlib.sh --- a/scripts/build/libc/newlib.sh Sat Oct 23 00:53:41 2010 +0200 +++ b/scripts/build/libc/newlib.sh Sat Oct 23 01:21:20 2010 +0200 @@ -68,6 +68,11 @@ CT_DoLog EXTRA "Configuring C library" + if [ "${CT_LIBC_NEWLIB_IO_C99FMT}" = "y" ]; then + newlib_opts+=( "--enable-newlib-io-c99-formats" ) + else + newlib_opts+=( "--disable-newlib-io-c99-formats" ) + fi if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then newlib_opts+=( "--enable-newlib-io-long-long" ) else