summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-10-07 10:44:15 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-10-07 10:44:15 +0000
commite9099df3908af6cdb6954a60cf417350a955459d (patch)
tree5b9f868b3b409314b432907874826baf6f45240a /eclass/toolchain.eclass
parentChange behavior to NOT use the deprecated CFLAGS_${ABI} unless explicitly ena... (diff)
downloadgentoo-2-e9099df3908af6cdb6954a60cf417350a955459d.tar.gz
gentoo-2-e9099df3908af6cdb6954a60cf417350a955459d.tar.bz2
gentoo-2-e9099df3908af6cdb6954a60cf417350a955459d.zip
Only use --with-sysroot with mips64 as it breaks other multilib crosscompilers.
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index d87d01b91b18..1325e7ffd82c 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.205 2005/10/07 04:27:08 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.206 2005/10/07 10:44:15 eradicator Exp $
HOMEPAGE="http://www.gnu.org/software/gcc/gcc.html"
LICENSE="GPL-2 LGPL-2.1"
@@ -768,7 +768,7 @@ create_eselect_conf() {
echo " infopath=${DATAPATH}/info" >> ${compiler_config_file}
echo " alias_cc=gcc" >> ${compiler_config_file}
echo " stdcxx_incdir=${STDCXX_INCDIR##*/}" >> ${compiler_config_file}
- echo " bin_prefix=${CTARGET}" >> ${compiler_config_file}
+ echo " bin_prefix=${CTARGET}" >> ${compiler_config_file}
if [[ -x "${D}/${BINPATH}/${CTARGET}-g77" ]] ; then
echo " alias_gfortran=g77" >> ${compiler_config_file}
@@ -1161,7 +1161,9 @@ gcc_do_configure() {
if ! has_version ${CATEGORY}/${needed_libc} ; then
confgcc="${confgcc} --disable-shared --disable-threads --without-headers"
else
- confgcc="${confgcc} --with-sysroot=${PREFIX}/${CTARGET}"
+ case ${CTARGET} in
+ mips64*) confgcc="${confgcc} --with-sysroot=${PREFIX}/${CTARGET}" ;;
+ esac
fi
fi
else