From 9d5fc3fd9b1e7a13a88daedbc11b7a797ae36322 Mon Sep 17 00:00:00 2001 From: Bryan Hundven Date: Wed, 13 Jan 2016 06:20:35 -0800 Subject: newlib: disable multilib if it is not enabled Signed-off-by: Bryan Hundven diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index ba52268..641ba95 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -65,6 +65,11 @@ do_libc() { CT_DoLog EXTRA "Configuring C library" + # Multilib is the default, so if it is not enabled, disable it. + if [ "${CT_MULTILIB}" != "y" ]; then + extra_config+=("--disable-multilib") + fi + if [ "${CT_LIBC_NEWLIB_IO_C99FMT}" = "y" ]; then newlib_opts+=( "--enable-newlib-io-c99-formats" ) else -- cgit v0.10.2-6-g49f6