Disable visibility support in kde programs in a different way (see bug #107571).
authorGregorio Guidi <greg_g@gentoo.org>
Mon, 3 Oct 2005 08:02:15 +0000 (08:02 +0000)
committerGregorio Guidi <greg_g@gentoo.org>
Mon, 3 Oct 2005 08:02:15 +0000 (08:02 +0000)
eclass/kde.eclass

index c82f63ad8fa56d037257dc49be6902fce739a85d..b9b10be393182532b5ac49006642a48ec78b22e6 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.133 2005/09/25 21:03:59 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/kde.eclass,v 1.134 2005/10/03 08:02:15 greg_g Exp $
 #
 # Author Dan Armak <danarmak@gentoo.org>
 #
@@ -59,13 +59,6 @@ kde_src_unpack() {
                debug-print "$FUNCNAME: touching .ui files..."
                touch $UIFILES
        fi
-
-       # Visiblity stuff *IS* broken. Just disable it when it's present.
-       # DON'T make this version-dependent, it's NOT version dependant.
-       if grep KDE_ENABLE_HIDDEN_VISIBILITY configure.in &> /dev/null || ! [[ -f configure ]]; then
-               find ${S} -name configure.in.in | xargs sed -i -e 's:KDE_ENABLE_HIDDEN_VISIBILITY::g'
-               rm -f configure
-       fi
 }
 
 kde_src_compile() {
@@ -141,6 +134,9 @@ kde_src_compile() {
 
                                cd $S
 
+                               # Visiblity stuff is broken. Just disable it when it's present.
+                               export kde_cv_prog_cxx_fvisibility_hidden=no
+
                                # If we're not a kde-base ebuild, then set up the /usr directories properly
                                # Perhaps this could get changed later to use econf instead?
                                if [[ $PREFIX = "/usr" ]]; then