From 12e01db59d3f9a015c3b06f4217754f598e50ef5 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sun, 4 Sep 2016 19:06:22 +0200 Subject: [PATCH] dev-libs/libxml2: fix linking of python modules on Darwin Package-Manager: portage-2.2.28 --- dev-libs/libxml2/libxml2-2.9.4.ebuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dev-libs/libxml2/libxml2-2.9.4.ebuild b/dev-libs/libxml2/libxml2-2.9.4.ebuild index 21aff5968625..2e57be70716d 100644 --- a/dev-libs/libxml2/libxml2-2.9.4.ebuild +++ b/dev-libs/libxml2/libxml2-2.9.4.ebuild @@ -85,6 +85,11 @@ src_prepare() { # https://bugzilla.gnome.org/show_bug.cgi?id=760458 eapply "${FILESDIR}"/${PN}-2.9.2-python-ABIFLAG.patch + # Avoid final linking arguments for python modules + if [[ ${CHOST} == *-darwin* ]] ; then + sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die + fi + # Please do not remove, as else we get references to PORTAGE_TMPDIR # in /usr/lib/python?.?/site-packages/libxml2mod.la among things. # We now need to run eautoreconf at the end to prevent maintainer mode. -- 2.26.2