From 1e414463fb8a3d00d5f15f86680f41b0a67e28b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 25 Feb 2018 20:09:04 +0100 Subject: [PATCH] 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 c4ebf78be0aa..809795ffd0a3 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)" ) } -- 2.26.2