commit:     820ddda479ca64b00b0d33a5fc3b4356275dcc50
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr  1 21:44:01 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr  1 22:27:14 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=820ddda4

sys-devel/llvm: Backport -Wl,-rpath FreeBSD fix to 5.0.1

 sys-devel/llvm/llvm-5.0.1.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-devel/llvm/llvm-5.0.1.ebuild b/sys-devel/llvm/llvm-5.0.1.ebuild
index 657a0ba9c45..a0287445e0d 100644
--- a/sys-devel/llvm/llvm-5.0.1.ebuild
+++ b/sys-devel/llvm/llvm-5.0.1.ebuild
@@ -83,6 +83,9 @@ src_prepare() {
        # Copy the new binary file (we don't support git binary patches)
        cp 
{"${WORKDIR}/${P}-patchset",.}/test/tools/llvm-symbolizer/Inputs/print_context.o
 || die
 
+       # Fix appending -Wl,-rpath-link on non-Linux (-> FreeBSD).
+       eapply 
"${FILESDIR}"/6.0.9999/0001-cmake-Append-Wl-rpath-link-conditionally-to-GNULD.patch
+
        # disable use of SDK on OSX, bug #568758
        sed -i -e 's/xcrun/false/' utils/lit/lit/util.py || die
 

Reply via email to