sys-devel/llvm: Backport -Wl,-rpath FreeBSD fix to 5.0.1
authorMichał Górny <mgorny@gentoo.org>
Sun, 1 Apr 2018 21:44:01 +0000 (23:44 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 1 Apr 2018 22:27:14 +0000 (00:27 +0200)
sys-devel/llvm/llvm-5.0.1.ebuild

index 657a0ba9c452d729e85796be1b5d032e1b0f3485..a0287445e0de9760080b0b76ba5c3141f830d6e7 100644 (file)
@@ -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