dev-libs/libxml2: fix compilation with older GCC
authorFabian Groffen <grobian@gentoo.org>
Tue, 29 May 2018 11:56:36 +0000 (13:56 +0200)
committerFabian Groffen <grobian@gentoo.org>
Tue, 29 May 2018 11:56:36 +0000 (13:56 +0200)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

dev-libs/libxml2/libxml2-2.9.8.ebuild

index 0d83dca0a9dfa9e4a67d04228304d85aa1752c10..acf8d9ec815dff2b94082b600dcba503b0b6408a 100644 (file)
@@ -81,9 +81,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
+               # Avoid final linking arguments for python modules
                sed -i -e '/PYTHON_LIBS/s/ldflags/libs/' configure.ac || die
+               # gcc-apple doesn't grok -Wno-array-bounds
+               sed -i -e 's/-Wno-array-bounds//' configure.ac || die
        fi
 
        # Please do not remove, as else we get references to PORTAGE_TMPDIR