diff options
author | 2010-04-20 17:47:09 +0000 | |
---|---|---|
committer | 2010-04-20 17:47:09 +0000 | |
commit | cb4ebb6d8c683e0b7ff7fa839e7c08eefea2563b (patch) | |
tree | b03983f406a422bd5b124de8cf4a73c39227cd5a /eclass | |
parent | Version bump. Moved slot from 2.1 to 2. Now uses alternatives eclass to simpl... (diff) | |
download | gentoo-2-cb4ebb6d8c683e0b7ff7fa839e7c08eefea2563b.tar.gz gentoo-2-cb4ebb6d8c683e0b7ff7fa839e7c08eefea2563b.tar.bz2 gentoo-2-cb4ebb6d8c683e0b7ff7fa839e7c08eefea2563b.zip |
Enable hardvfp if *eabi, if *hardfloat*, if gcc-4.5 and if arm, bug #315987, acked by vapier
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 81a330e8ccfa..69efc6562852 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.421 2010/04/03 20:32:47 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.422 2010/04/20 17:47:09 armin76 Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1241,6 +1241,12 @@ gcc-compiler-configure() { [[ ${arm_arch} == *eb ]] && arm_arch=${arm_arch%eb} confgcc="${confgcc} --with-arch=${arm_arch}" fi + + # Enable hardvfp + if [[ ${CTARGET##*-} == *eabi ]] && [[ $(tc-is-softfloat) == no ]] && \ + tc_version_is_at_least "4.5" ; then + confgcc="${confgcc} --with-float=hard" + fi ;; # Add --with-abi flags to set default MIPS ABI mips) |