From 51878c32c4a3e803326215aa1e99e5a35bcd81f3 Mon Sep 17 00:00:00 2001
From: Ingmar Vanhassel <ingmar@gentoo.org>
Date: Mon, 14 Apr 2008 21:51:15 +0000
Subject: Add a pch USE flag to Qt:4 split ebuilds, bug 217712.

---
 eclass/qt4-build.eclass | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'eclass')

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
-- 
cgit v1.2.3-65-gdbad