libxml2: Fix usage on GCC2.

This commit is contained in:
Augustin Cavalier
2019-04-04 20:49:56 -04:00
parent d196c480a0
commit 6ea5d0fd9d

View File

@@ -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()