summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2010-09-21 16:14:35 +0000
committerBernard Cafarelli <voyageur@gentoo.org>2010-09-21 16:14:35 +0000
commitb04326e392e36fd783d0c96d1d062b282295a0a4 (patch)
tree5475bd5360d4551026a50d5c474791819d946bf7 /sys-devel/clang/clang-9999.ebuild
parentFix the rpath sed so llvm-* binaries actually find the llvm shared library (diff)
downloadgentoo-2-b04326e392e36fd783d0c96d1d062b282295a0a4.tar.gz
gentoo-2-b04326e392e36fd783d0c96d1d062b282295a0a4.tar.bz2
gentoo-2-b04326e392e36fd783d0c96d1d062b282295a0a4.zip
Fix rpath sed and disable shared library use, thanks Nick Bowler <nbowler@draconx.ca> in bug #338231
(Portage version: 2.2_rc85/cvs/Linux x86_64)
Diffstat (limited to 'sys-devel/clang/clang-9999.ebuild')
-rw-r--r--sys-devel/clang/clang-9999.ebuild8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys-devel/clang/clang-9999.ebuild b/sys-devel/clang/clang-9999.ebuild
index 7c71aba519d2..53f146bde025 100644
--- a/sys-devel/clang/clang-9999.ebuild
+++ b/sys-devel/clang/clang-9999.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.7 2010/08/28 14:06:47 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/clang/clang-9999.ebuild,v 1.8 2010/09/21 16:14:35 voyageur Exp $
EAPI=3
@@ -54,12 +54,12 @@ src_prepare() {
einfo "Fixing install dirs"
sed -e 's,^PROJ_docsdir.*,PROJ_docsdir := $(PROJ_prefix)/share/doc/'${PF}, \
-e 's,^PROJ_etcdir.*,PROJ_etcdir := '"${EPREFIX}"'/etc/llvm,' \
- -e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir), \
+ -e 's,^PROJ_libdir.*,PROJ_libdir := $(PROJ_prefix)/'$(get_libdir)/llvm, \
-i Makefile.config.in || die "Makefile.config sed failed"
einfo "Fixing rpath"
- sed -e 's/\$(RPATH) -Wl,\$(\(ToolDir\|LibDir\))//g' -i Makefile.rules \
- || die "rpath sed failed"
+ sed -e 's,\$(RPATH) -Wl\,\$(\(ToolDir\|LibDir\)),$(RPATH) -Wl\,'"${EPREFIX}"/usr/$(get_libdir)/llvm, \
+ -i Makefile.rules || die "rpath sed failed"
}
src_configure() {