From 975d24cb356913e7f4a79931a3c8dd7b655f3027 Mon Sep 17 00:00:00 2001 From: Cody P Schafer Date: Fri, 18 Jul 2014 23:23:11 -0400 Subject: cc/gcc: avoid passing --enable-multilib (take 2) The previous patch (cset b61a1b1, cc/gcc: avoid passing --enable-multilib) only fixed the core backend, and missed the final backend. This patch does the same as b61a1b1, but for the final backend. Signed-off-by: Cody P Schafer Signed-off-by: "Yann E. MORIN" 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 -- cgit v0.10.2-6-g49f6