commit: 0e2881c279258517970855d2144b4dbb887aa050
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Tue May 29 11:56:36 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue May 29 11:56:36 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e2881c2
dev-libs/libxml2: fix compilation with older GCC
Package-Manager: Portage-2.3.24, Repoman-2.3.6
dev-libs/libxml2/libxml2-2.9.8.ebuild | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/dev-libs/libxml2/libxml2-2.9.8.ebuild
b/dev-libs/libxml2/libxml2-2.9.8.ebuild
index 0d83dca0a9d..acf8d9ec815 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