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] cc/gcc: avoid passing --enable-multilib


This is one I missed in the last patch (it was mixed with a different
local patch)

Signed-off-by: Cody P Schafer <dev@codyps.com>
---
 scripts/build/cc/gcc.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh
index 8a428a2..173ddbf 100644
--- a/scripts/build/cc/gcc.sh
+++ b/scripts/build/cc/gcc.sh
@@ -829,9 +829,10 @@ do_cc_backend() {
         extra_config+=("--with-system-zlib")
     fi
 
-    if [ "${CT_MULTILIB}" = "y" ]; then
-        extra_config+=("--enable-multilib")
-    else
+
+    # Some versions of gcc have a deffective --enable-multilib.
+    # Since that's the default, only pass --disable-multilib.
+    if [ "${CT_MULTILIB}" != "y" ]; then
         extra_config+=("--disable-multilib")
     fi
 
-- 
2.0.2


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