summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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