summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/libc/newlib.in.27
-rw-r--r--scripts/build/libc/newlib.sh5
2 files changed, 12 insertions, 0 deletions
diff --git a/config/libc/newlib.in.2 b/config/libc/newlib.in.2
index 911c864..66b0275 100644
--- a/config/libc/newlib.in.2
+++ b/config/libc/newlib.in.2
@@ -1,5 +1,12 @@
# newlib second-part options
+config LIBC_NEWLIB_IO_LL
+ bool
+ prompt "Enable IOs on long long"
+ default n
+ help
+ Enable support for IOs on long long integers.
+
config LIBC_NEWLIB_IO_FLOAT
bool
prompt "Enable IOs on floats and doubles"
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index b073a75..65a666e 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -68,6 +68,11 @@ do_libc_start_files() {
CT_DoLog EXTRA "Configuring C library"
+ if [ "${CT_LIBC_NEWLIB_IO_LL}" = "y" ]; then
+ newlib_opts+=( "--enable-newlib-io-long-long" )
+ else
+ newlib_opts+=( "--disable-newlib-io-long-long" )
+ fi
if [ "${CT_LIBC_NEWLIB_IO_FLOAT}" = "y" ]; then
newlib_opts+=( "--enable-newlib-io-float" )
if [ "${CT_LIBC_NEWLIB_IO_LDBL}" = "y" ]; then