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]

Re: [PATCH] Avoid passing --enable-multilib


On 05/09/2014 07:12 PM, Cody Schafer wrote:
# 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


Signed-off-by: Cody P Schafer <dev@codyps.com>


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


--
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]