diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-03-01 00:13:01 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-01 00:13:01 +0000 |
commit | dc3b49b3d7e8a68c5185360d311b77a8a15e6c64 (patch) | |
tree | 8370be5cecf10af0b6150ea9abf4e4d160a4d04c /eclass | |
parent | EAPI=2; slot gtk+ dep (diff) | |
download | gentoo-2-dc3b49b3d7e8a68c5185360d311b77a8a15e6c64.tar.gz gentoo-2-dc3b49b3d7e8a68c5185360d311b77a8a15e6c64.tar.bz2 gentoo-2-dc3b49b3d7e8a68c5185360d311b77a8a15e6c64.zip |
auto enable e500-double for ppc targets when possible #353380 by Alexander Dubov
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index ffe836912b93..ea55ac1a6eb5 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.450 2011/02/13 12:10:12 dirtyepic Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.451 2011/03/01 00:13:01 vapier Exp $ # # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> @@ -1252,6 +1252,11 @@ gcc-compiler-configure() { hppa) [[ ${GCCMAJOR} == "3" ]] && confgcc="${confgcc} --enable-sjlj-exceptions" ;; + # Set up defaults based on current CFLAGS + ppc) + is-flagq -mfloat-gprs=double && confgcc+=" --enable-e500-double" + [[ ${CTARGET//_/-} == *-e500v2-* ]] && confgcc+=" --enable-e500-double" + ;; esac GCC_LANG="c" |