# HG changeset patch # User Cody Schafer # Date 1399687919 25200 # Node ID e35fa03cd2043496839aa5fa3a1a3d2d375b5535 # Parent 6fb47591d19dd90fd7fb28017cf68edcaa8609c1 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 [yann.morin.1998@free.fr: make it an if-block; duplicate commit log as comment] Signed-off-by: "Yann E. MORIN" Message-Id: <5c970c1ceb22528fe28a.1399687923@localhost> Patchwork-Id: 347585 diff -r 6fb47591d19d -r e35fa03cd204 scripts/build/cc/gcc.sh --- a/scripts/build/cc/gcc.sh Fri May 09 19:10:08 2014 -0700 +++ b/scripts/build/cc/gcc.sh Fri May 09 19:11:59 2014 -0700 @@ -367,9 +367,9 @@ 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