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