This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See crosstool-NG for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Avoid passing --enable-multilib


# HG changeset patch
# User Cody Schafer <dev@codyps.com>
# Date 1399687919 25200
#      Fri May 09 19:11:59 2014 -0700
# Node ID 5c970c1ceb22528fe28a7669a9f6ef67a4eedae3
# Parent  c70f928e69e022cfbf09a2103ed0bbd349bc518f
Avoid passing --enable-multilib

Some versions of gcc have a broken --enable-multilib flag. As multilib is the
default, only pass the --disable-multilib flag

diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -367,11 +367,7 @@
         extra_config+=("--with-system-zlib")
     fi
 
-    if [ "${CT_MULTILIB}" = "y" ]; then
-        extra_config+=("--enable-multilib")
-    else
-        extra_config+=("--disable-multilib")
-    fi
+    [ "${CT_MULTILIB}" != "y" ] && extra_config+=("--disable-multilib")
 
     CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
 


--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]