From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/mgorny:master commit in: sys-devel/llvm/files/, sys-devel/llvm/
Date: Fri, 19 Jul 2013 21:24:13 +0000 (UTC) [thread overview]
Message-ID: <1374261508.700f2c0ea97d728e57aa0b73271b84429dad485f.mgorny@gentoo> (raw)
commit: 700f2c0ea97d728e57aa0b73271b84429dad485f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 19 19:18:28 2013 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul 19 19:18:28 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/mgorny.git;a=commit;h=700f2c0e
llvm-9999: add build tree paths to LD_LIBRARY_PATH instead of RPATH.
This allows us to keep clean RPATHs in executables while keeping build
and tests working.
---
sys-devel/llvm/files/llvm-3.4-gentoo-install.patch | 4 ++--
sys-devel/llvm/llvm-9999-r1.ebuild | 11 +++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/sys-devel/llvm/files/llvm-3.4-gentoo-install.patch b/sys-devel/llvm/files/llvm-3.4-gentoo-install.patch
index 2493674..ad3eec1 100644
--- a/sys-devel/llvm/files/llvm-3.4-gentoo-install.patch
+++ b/sys-devel/llvm/files/llvm-3.4-gentoo-install.patch
@@ -57,12 +57,12 @@ index 1bc78f1..60cd228 100644
ifneq ($(HOST_OS), Darwin)
ifdef TOOLNAME
- LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' $(DynamicFlag)
-+ LD.Flags += $(RPATH) -Wl,'$$ORIGIN/../lib' $(RPATH) -Wl,'$(PROJ_libdir)' $(DynamicFlag)
++ LD.Flags += $(RPATH) -Wl,'$(PROJ_libdir)' $(DynamicFlag)
endif
else
ifneq ($(DARWIN_MAJVERS),4)
- LD.Flags += $(RPATH) -Wl,@executable_path/../lib
-+ LD.Flags += $(RPATH) -Wl,@executable_path/../lib $(RPATH) -Wl,'$(PROJ_libdir)'
++ LD.Flags += $(RPATH) -Wl,'$(PROJ_libdir)'
endif
ifeq ($(RC_XBS),YES)
TempFile := $(shell mkdir -p ${OBJROOT}/dSYMs ; mktemp ${OBJROOT}/dSYMs/llvm-lto.XXXXXX)
diff --git a/sys-devel/llvm/llvm-9999-r1.ebuild b/sys-devel/llvm/llvm-9999-r1.ebuild
index e87142d..e3d56dc 100644
--- a/sys-devel/llvm/llvm-9999-r1.ebuild
+++ b/sys-devel/llvm/llvm-9999-r1.ebuild
@@ -131,6 +131,17 @@ src_prepare() {
multilib_copy_sources
multilib_foreach_abi multilib_src_prepare
+
+ # Add LLVM built libraries to LD_LIBRARY_PATH.
+ # This way we don't have to hack RPATHs of executables.
+ local libpath
+ if use debug; then
+ libpath=Debug+Asserts+Checks/lib
+ else
+ libpath=Release/lib
+ fi
+
+ export LD_LIBRARY_PATH=${libpath}${LD_LIBRARY_PATH+:${LD_LIBRARY_PATH}}
}
multilib_src_configure() {
next reply other threads:[~2013-07-19 21:24 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-19 21:24 Michał Górny [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-07-20 14:00 [gentoo-commits] dev/mgorny:master commit in: sys-devel/llvm/files/, sys-devel/llvm/ Michał Górny
2013-07-20 14:00 Michał Górny
2013-07-20 6:28 Michał Górny
2013-07-19 11:02 Michał Górny
2013-07-19 10:44 Michał Górny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1374261508.700f2c0ea97d728e57aa0b73271b84429dad485f.mgorny@gentoo \
--to=mgorny@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox