dev-libs/libxml2: fix linking of python modules on Darwin
authorFabian Groffen <grobian@gentoo.org>
Sun, 4 Sep 2016 17:06:22 +0000 (19:06 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 4 Sep 2016 17:07:04 +0000 (19:07 +0200)
Package-Manager: portage-2.2.28

dev-libs/libxml2/libxml2-2.9.4.ebuild

index 21aff59686252f2c53688a4608dd4989c5394f26..2e57be70716dfb126042d5277c2dc59bd2d7734d 100644 (file)
@@ -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.