summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Schafer <dev@codyps.com>2014-05-10 02:11:59 (GMT)
committerCody Schafer <dev@codyps.com>2014-05-10 02:11:59 (GMT)
commitb61a1b13ee0e9d4960c45240a87484be6198dc62 (patch)
tree9d4883bb24f354ef0142b84ecf19b642c1c95f59
parent13fcbed86e91e339560dfe35623a79e8576aeee6 (diff)
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
-rw-r--r--scripts/build/cc/gcc.sh6
1 files changed, 3 insertions, 3 deletions
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