summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Loeser <halcy0n@gentoo.org>2009-05-07 23:56:12 +0000
committerMark Loeser <halcy0n@gentoo.org>2009-05-07 23:56:12 +0000
commitaaf5bb1afd1e443f2d23c1eb0f1c6bc6d2392e2f (patch)
treef2117cea01028bbfea50ec44339b72bc41eba3cc /eclass/toolchain.eclass
parentVersion bump. (diff)
downloadhistorical-aaf5bb1afd1e443f2d23c1eb0f1c6bc6d2392e2f.tar.gz
historical-aaf5bb1afd1e443f2d23c1eb0f1c6bc6d2392e2f.tar.bz2
historical-aaf5bb1afd1e443f2d23c1eb0f1c6bc6d2392e2f.zip
Add support for graphite
Diffstat (limited to 'eclass/toolchain.eclass')
-rw-r--r--eclass/toolchain.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index edc4a5b52c74..226af1a7bd71 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.397 2009/05/07 01:45:55 halcy0n Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain.eclass,v 1.398 2009/05/07 23:56:12 halcy0n Exp $
#
# Maintainer: Toolchain Ninjas <toolchain@gentoo.org>
@@ -156,6 +156,7 @@ else
tc_version_is_at_least "4.1" && IUSE="${IUSE} objc++"
tc_version_is_at_least "4.2" && IUSE="${IUSE} openmp"
tc_version_is_at_least "4.3" && IUSE="${IUSE} fixed-point"
+ tc_version_is_at_least "4.4" && IUSE="${IUSE} graphite"
fi
fi
@@ -1311,6 +1312,12 @@ gcc_do_configure() {
# users to control this feature in the event they need the support.
tc_version_is_at_least "4.3" && confgcc="${confgcc} $(use_enable fixed-point)"
+ # graphite support was added in 4.4, which depends upon external libraries
+ # for optimizations. This option allows users to determine if they want
+ # these optimizations and libraries pulled in
+ tc_version_is_at_least "4.4" && \
+ confgcc="${confgcc} $(use_with graphite ppl) $(use_with graphite cloog)"
+
[[ $(tc-is-softfloat) == "yes" ]] && confgcc="${confgcc} --with-float=soft"