From 0e2881c279258517970855d2144b4dbb887aa050 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Tue, 29 May 2018 13:56:36 +0200 Subject: [PATCH] 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 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 -- 2.26.2