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
This commit is contained in:
Cody Schafer 2014-05-09 19:11:59 -07:00
parent 13fcbed86e
commit b61a1b13ee

View File

@ -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