summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Wendel <lanius@gentoo.org>2005-05-19 13:29:56 +0000
committerHeinrich Wendel <lanius@gentoo.org>2005-05-19 13:29:56 +0000
commit9b52c45d1a428f479b5d59a541158ec55ccfb294 (patch)
tree7b973154ee1b9aff6855d5191074bd90961d5fea /x11-libs
parentbump (diff)
downloadgentoo-2-9b52c45d1a428f479b5d59a541158ec55ccfb294.tar.gz
gentoo-2-9b52c45d1a428f479b5d59a541158ec55ccfb294.tar.bz2
gentoo-2-9b52c45d1a428f479b5d59a541158ec55ccfb294.zip
fix linking against openmotif
(Portage version: 2.0.51.19)
Diffstat (limited to 'x11-libs')
-rw-r--r--x11-libs/lesstif/lesstif-0.94.4.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11-libs/lesstif/lesstif-0.94.4.ebuild b/x11-libs/lesstif/lesstif-0.94.4.ebuild
index cbafea7880b5..5fb02f2229b6 100644
--- a/x11-libs/lesstif/lesstif-0.94.4.ebuild
+++ b/x11-libs/lesstif/lesstif-0.94.4.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.4.ebuild,v 1.4 2005/05/16 14:39:53 lanius Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/lesstif/lesstif-0.94.4.ebuild,v 1.5 2005/05/19 13:29:56 lanius Exp $
inherit libtool flag-o-matic multilib
@@ -42,10 +42,18 @@ src_compile() {
--enable-verbose=no \
--with-x || die "./configure failed"
+ # fix linkage against already installed version
+ perl -pi -e 's/^(hardcode_into_libs)=.*/$1=no/' libtool
+
emake CFLAGS="${CFLAGS}" || die
}
src_install() {
+ # fix linkage against already installed version
+ for f in `find . -name \*.la -type f` ; do
+ perl -pi -e 's/^(relink_command=.*)/# $1/' $f
+ done
+
make DESTDIR=${D} install || die "make install"