commit: 1e414463fb8a3d00d5f15f86680f41b0a67e28b4
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 25 19:09:04 2018 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 25 19:09:23 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1e414463
sys-devel/llvm: Install libFuzzer only for Darwin||Linux
Install libFuzzer only on platforms where it is actually built, that
is Darwin and Linux. This fixes install failure on FreeBSD.
sys-devel/llvm/llvm-5.0.1.ebuild | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/sys-devel/llvm/llvm-5.0.1.ebuild b/sys-devel/llvm/llvm-5.0.1.ebuild
index c4ebf78be0a..809795ffd0a 100644
--- a/sys-devel/llvm/llvm-5.0.1.ebuild
+++ b/sys-devel/llvm/llvm-5.0.1.ebuild
@@ -35,7 +35,7 @@ LICENSE="UoI-NCSA rc BSD public-domain
SLOT="$(ver_cut 1)"
KEYWORDS="amd64 ~arm ~arm64 x86 ~amd64-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE="debug doc gold libedit +libffi ncurses test
- kernel_Darwin ${ALL_LLVM_TARGETS[*]}"
+ kernel_Darwin kernel_linux ${ALL_LLVM_TARGETS[*]}"
RDEPEND="
sys-libs/zlib:0=
@@ -211,10 +211,12 @@ multilib_src_install() {
rm -rf "${ED%/}"/usr/include || die
mv "${ED%/}"/usr/lib/llvm/${SLOT}/include "${ED%/}"/usr/include || die
- # install fuzzer libraries for clang (cmake rules were added in 6)
- # https://bugs.gentoo.org/636840
- into "/usr/lib/llvm/${SLOT}"
- dolib.a "$(get_libdir)"/libLLVMFuzzer*.a
+ if use kernel_linux || use kernel_Darwin; then
+ # install fuzzer libraries for clang (cmake rules were added in
6)
+ # https://bugs.gentoo.org/636840
+ into "/usr/lib/llvm/${SLOT}"
+ dolib.a "$(get_libdir)"/libLLVMFuzzer*.a
+ fi
LLVM_LDPATHS+=( "${EPREFIX}/usr/lib/llvm/${SLOT}/$(get_libdir)" )
}