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
commit51878c32c4a3e803326215aa1e99e5a35bcd81f3 (patch)
treeedbfb2169d9361a59f2c7c32292c7a5cae3e9eb7 /eclass/qt4-build.eclass
parentAdd description for pch USE flag to Qt:4 split ebuilds. (diff)
downloadgentoo-2-51878c32c4a3e803326215aa1e99e5a35bcd81f3.tar.gz
gentoo-2-51878c32c4a3e803326215aa1e99e5a35bcd81f3.tar.bz2
gentoo-2-51878c32c4a3e803326215aa1e99e5a35bcd81f3.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