1 |
commit: 66a09c4218f9fb06a480e777d26dd2d82a716662 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Apr 9 07:16:41 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 10 17:36:01 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66a09c42 |
7 |
|
8 |
dev-python/llvmlite: Update/fix flag mangling |
9 |
|
10 |
dev-python/llvmlite/llvmlite-0.16.0.ebuild | 6 +++++- |
11 |
1 file changed, 5 insertions(+), 1 deletion(-) |
12 |
|
13 |
diff --git a/dev-python/llvmlite/llvmlite-0.16.0.ebuild b/dev-python/llvmlite/llvmlite-0.16.0.ebuild |
14 |
index e470147f80f..47ce82f4870 100644 |
15 |
--- a/dev-python/llvmlite/llvmlite-0.16.0.ebuild |
16 |
+++ b/dev-python/llvmlite/llvmlite-0.16.0.ebuild |
17 |
@@ -30,7 +30,11 @@ PATCHES=( |
18 |
) |
19 |
|
20 |
python_prepare_all() { |
21 |
- sed -e 's/-flto$/-flto -fPIC/' \ |
22 |
+ # remove -static-libstdc++, it makes no sense with shared LLVM |
23 |
+ # add -fPIC, needed to link against shared libraries |
24 |
+ # disable -flto, we do not force it against user's wishes |
25 |
+ sed -e 's/-static-libstdc++/-fPIC/' \ |
26 |
+ -e '/^(CXX|LD)_FLTO_FLAGS/d' \ |
27 |
-i ffi/Makefile.linux || die |
28 |
distutils-r1_python_prepare_all |
29 |
} |