diff --git a/srcpkgs/perl-XML-LibXML/template b/srcpkgs/perl-XML-LibXML/template index 26d3934f94f..a7d97a6ad18 100644 --- a/srcpkgs/perl-XML-LibXML/template +++ b/srcpkgs/perl-XML-LibXML/template @@ -13,4 +13,10 @@ license="Artistic, GPL-1" homepage="http://search.cpan.org/dist/${pkgname/perl-/}/" distfiles="${CPAN_SITE}/XML/${pkgname/perl-/}-${version}.tar.gz" checksum=721452e3103ca188f5968ab06d5ba29fe8e00e49f4767790882095050312d476 -nocross="yes" # tries to execute target-compiled binary during configure + +pre_configure() { + if [ -n "$CROSS_BUILD" ]; then + # Disable link and execute check for libxml2 + sed -i Makefile.PL -e"s;_libxml_check_lib('xml2');1;" + fi +}