summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Alexander <wired@gentoo.org>2010-05-24 14:27:13 +0000
committerAlex Alexander <wired@gentoo.org>2010-05-24 14:27:13 +0000
commit007515c380c5635808fd204b5dc9fef8905eb95a (patch)
tree73ce5d21b65eb76cc7e2bd50f1eb7758e647e042 /eclass/qt4-build.eclass
parentRemove wrobel from metadata.xml (#111816) (diff)
downloadgentoo-2-007515c380c5635808fd204b5dc9fef8905eb95a.tar.gz
gentoo-2-007515c380c5635808fd204b5dc9fef8905eb95a.tar.bz2
gentoo-2-007515c380c5635808fd204b5dc9fef8905eb95a.zip
fixed 4.7.0_beta1 regression with -fvisibility=hidden
Diffstat (limited to 'eclass/qt4-build.eclass')
-rw-r--r--eclass/qt4-build.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/qt4-build.eclass b/eclass/qt4-build.eclass
index 8e592df1f655..ae6a19e0d0b5 100644
--- a/eclass/qt4-build.eclass
+++ b/eclass/qt4-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.68 2010/05/22 19:23:51 wired Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.69 2010/05/24 14:27:13 wired Exp $
# @ECLASS: qt4-build.eclass
# @MAINTAINER:
@@ -162,6 +162,13 @@ qt4-build_src_prepare() {
setqtenv
cd "${S}"
+ # fix qt 4.7 regression that skips -fvisibility=hidden
+ if [[ "${PV}" == "4.7.0_beta1" ]]; then
+ sed -e "s/^gcc|g++)/*gcc|*g++)/" \
+ -i config.tests/unix/fvisibility.test ||
+ die "visibility fixing sed failed"
+ fi
+
if use aqua; then
# provide a proper macx-g++-64
use x64-macos && ln -s macx-g++ mkspecs/$(qt_mkspecs_dir)