From: Michał Górny Date: Sun, 25 Feb 2018 19:09:04 +0000 (+0100) Subject: sys-devel/llvm: Install libFuzzer only for Darwin||Linux X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=1e414463fb8a3d00d5f15f86680f41b0a67e28b4;p=gentoo.git 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. --- 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)" ) }