diff options
author | Mike Frysinger <vapier@gentoo.org> | 2007-07-20 04:59:51 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2007-07-20 04:59:51 +0000 |
commit | a5859a2433b1829168daaaf95b82d19b57624d6c (patch) | |
tree | 7c09c26b2cbdb0204e4f0fba5eeee00903d38e26 /eclass/toolchain.eclass | |
parent | ~x86 (diff) | |
download | gentoo-2-a5859a2433b1829168daaaf95b82d19b57624d6c.tar.gz gentoo-2-a5859a2433b1829168daaaf95b82d19b57624d6c.tar.bz2 gentoo-2-a5859a2433b1829168daaaf95b82d19b57624d6c.zip |
set default -march for x86 based on CTARGET
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r-- | eclass/toolchain.eclass | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index dfcf054165a6..ed04799dbb4f 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.338 2007/07/16 02:14:56 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.339 2007/07/20 04:59:51 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1157,16 +1157,21 @@ gcc-compiler-configure() { case $(tc-arch) in # Add --with-abi flags to set default MIPS ABI mips) - local mips_abi="" - use n64 && mips_abi="--with-abi=64" - use n32 && mips_abi="--with-abi=n32" - [[ -n ${mips_abi} ]] && confgcc="${confgcc} ${mips_abi}" - ;; + local mips_abi="" + use n64 && mips_abi="--with-abi=64" + use n32 && mips_abi="--with-abi=n32" + [[ -n ${mips_abi} ]] && confgcc="${confgcc} ${mips_abi}" + ;; + # Default arch for x86 is normally i386, lets give it a bump + # since glibc will do so based on CTARGET anyways + x86) + confgcc="${confgcc} --with-arch=${CTARGET%%-*}" + ;; # Enable sjlj exceptions for backward compatibility on hppa hppa) [[ ${GCC_PV:0:1} == "3" ]] && \ confgcc="${confgcc} --enable-sjlj-exceptions" - ;; + ;; esac GCC_LANG="c" |