1 |
commit: 12e01db59d3f9a015c3b06f4217754f598e50ef5 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 4 17:06:22 2016 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 4 17:07:04 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12e01db5 |
7 |
|
8 |
dev-libs/libxml2: fix linking of python modules on Darwin |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
dev-libs/libxml2/libxml2-2.9.4.ebuild | 5 +++++ |
13 |
1 file changed, 5 insertions(+) |
14 |
|
15 |
diff --git a/dev-libs/libxml2/libxml2-2.9.4.ebuild b/dev-libs/libxml2/libxml2-2.9.4.ebuild |
16 |
index 21aff59..2e57be7 100644 |
17 |
--- a/dev-libs/libxml2/libxml2-2.9.4.ebuild |
18 |
+++ b/dev-libs/libxml2/libxml2-2.9.4.ebuild |
19 |
@@ -85,6 +85,11 @@ src_prepare() { |
20 |
# https://bugzilla.gnome.org/show_bug.cgi?id=760458 |
21 |
eapply "${FILESDIR}"/${PN}-2.9.2-python-ABIFLAG.patch |
22 |
|
23 |
+ # Avoid final linking arguments for python modules |
24 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
25 |
+ sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die |
26 |
+ fi |
27 |
+ |
28 |
# Please do not remove, as else we get references to PORTAGE_TMPDIR |
29 |
# in /usr/lib/python?.?/site-packages/libxml2mod.la among things. |
30 |
# We now need to run eautoreconf at the end to prevent maintainer mode. |