diff mbox

Avoid passing --enable-multilib

Message ID 5c970c1ceb22528fe28a.1399687923@localhost
State Accepted
Commit e35fa03cd204
Headers show

Commit Message

Cody P Schafer May 10, 2014, 2:12 a.m. UTC
# 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



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

Comments

Cody P Schafer May 11, 2014, 12:16 a.m. UTC | #1
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
Yann E. MORIN May 11, 2014, 10:54 a.m. UTC | #2
Cody, All,

Your patch:
    cc/gcc: avoid passing --enable-multilib

has been applied as: #e35fa03cd204
    http://crosstool-ng.org/hg/crosstool-ng/rev/e35fa03cd204

Thank you!

Regards,
Yann E. MORIN.



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

Patch

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[*]}'"