From: Fabian Groffen Date: Tue, 29 May 2018 11:56:36 +0000 (+0200) Subject: dev-libs/libxml2: fix compilation with older GCC X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=0e2881c279258517970855d2144b4dbb887aa050;p=gentoo.git dev-libs/libxml2: fix compilation with older GCC Package-Manager: Portage-2.3.24, Repoman-2.3.6 --- diff --git a/dev-libs/libxml2/libxml2-2.9.8.ebuild b/dev-libs/libxml2/libxml2-2.9.8.ebuild index 0d83dca0a9df..acf8d9ec815d 100644 --- a/dev-libs/libxml2/libxml2-2.9.8.ebuild +++ b/dev-libs/libxml2/libxml2-2.9.8.ebuild @@ -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