From b61a1b13ee0e9d4960c45240a87484be6198dc62 Mon Sep 17 00:00:00 2001 From: Cody Schafer Date: Fri, 9 May 2014 19:11:59 -0700 Subject: 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 --git a/scripts/build/cc/gcc.sh b/scripts/build/cc/gcc.sh index 04aff66..29eaabe 100644 --- a/scripts/build/cc/gcc.sh +++ b/scripts/build/cc/gcc.sh @@ -367,9 +367,9 @@ do_cc_core_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 -- cgit v0.10.2-6-g49f6