cc/gcc: avoid passing --enable-multilib
authorCody Schafer <dev@codyps.com>
Fri May 09 19:11:59 2014 -0700 (2014-05-09)
changeset 3311e35fa03cd204
parent 3310 6fb47591d19d
child 3312 4876ff97e039
cc/gcc: 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>
[yann.morin.1998@free.fr: make it an if-block; duplicate commit log as comment]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <5c970c1ceb22528fe28a.1399687923@localhost>
Patchwork-Id: 347585
scripts/build/cc/gcc.sh
     1.1 --- a/scripts/build/cc/gcc.sh	Fri May 09 19:10:08 2014 -0700
     1.2 +++ b/scripts/build/cc/gcc.sh	Fri May 09 19:11:59 2014 -0700
     1.3 @@ -367,9 +367,9 @@
     1.4          extra_config+=("--with-system-zlib")
     1.5      fi
     1.6  
     1.7 -    if [ "${CT_MULTILIB}" = "y" ]; then
     1.8 -        extra_config+=("--enable-multilib")
     1.9 -    else
    1.10 +    # Some versions of gcc have a deffective --enable-multilib.
    1.11 +    # Since that's the default, only pass --disable-multilib.
    1.12 +    if [ "${CT_MULTILIB}" != "y" ]; then
    1.13          extra_config+=("--disable-multilib")
    1.14      fi
    1.15