diff --git a/dev-libs/libxml2/libxml2-2.9.9.recipe b/dev-libs/libxml2/libxml2-2.9.9.recipe index bc58dfc73..c3af48e59 100644 --- a/dev-libs/libxml2/libxml2-2.9.9.recipe +++ b/dev-libs/libxml2/libxml2-2.9.9.recipe @@ -10,7 +10,7 @@ available in other environments." HOMEPAGE="http://www.xmlsoft.org/" COPYRIGHT="1998-2013 Daniel Veillard. All Rights Reserved." LICENSE="MIT" -REVISION="2" +REVISION="3" SOURCE_URI="ftp://xmlsoft.org/libxml2/libxml2-$portVersion.tar.gz" CHECKSUM_SHA256="94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871" PATCHES="libxml2-$portVersion.patchset" @@ -97,6 +97,10 @@ PATCH() doc/devhelp/Makefile.am sed -i "s,%{_datadir}/gtk-doc/html/libxml2,${developDocDir},g" \ libxml.spec.in + + # treat __GNUC__ as true only if >= 4 in some files + sed -i "s/def __GNUC__/ defined\\(__GNUC__\\) \\&\\& __GNUC__ > 3/g" \ + timsort.h } BUILD()