summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngmar Vanhassel <ingmar@gentoo.org>2008-04-14 21:51:15 +0000
committerIngmar Vanhassel <ingmar@gentoo.org>2008-04-14 21:51:15 +0000
commit5dd3371cbc7cce1e034e0fd46e8b5f54d099bae3 (patch)
tree6a157afc307d6d64ac4cd484136e165961594ee7 /eclass/qt4-build.eclass
parentAdd description for pch USE flag to Qt:4 split ebuilds. (diff)
downloadhistorical-5dd3371cbc7cce1e034e0fd46e8b5f54d099bae3.tar.gz
historical-5dd3371cbc7cce1e034e0fd46e8b5f54d099bae3.tar.bz2
historical-5dd3371cbc7cce1e034e0fd46e8b5f54d099bae3.zip
Add a pch USE flag to Qt:4 split ebuilds, bug 217712.
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r--eclass/qt4-build.eclass11
1 files changed, 9 insertions, 2 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 41197585e436..082c702281f7 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 2007-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.11 2008/04/10 14:23:45 ingmar Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.12 2008/04/14 21:51:15 ingmar Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -11,7 +11,7 @@
inherit eutils multilib toolchain-funcs flag-o-matic
-IUSE="${IUSE} debug"
+IUSE="${IUSE} debug pch"
case "${PV}" in
4.4.0_beta*)
@@ -146,6 +146,13 @@ standard_configure_options() {
myconf="${myconf} -no-reduce-exports"
fi
+ # precompiled headers doesn't work on hardened, where the flag is masked.
+ if use pch; then
+ myconf="${myconf} -pch"
+ else
+ myconf="${myconf} -no-pch"
+ fi
+
if use debug; then
myconf="${myconf} -debug -no-separate-debug-info"
else