diff --git a/srcpkgs/perl-Math-Prime-Util-GMP/template b/srcpkgs/perl-Math-Prime-Util-GMP/template index 34ba6525d8d..f8998dad958 100644 --- a/srcpkgs/perl-Math-Prime-Util-GMP/template +++ b/srcpkgs/perl-Math-Prime-Util-GMP/template @@ -13,3 +13,9 @@ license="Artistic, GPL-1" homepage="https://github.com/danaj/Math-Prime-Util-GMP" distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz" checksum=bf37ab27ca155aaa274688d7115bbefc93e28d4a6ba4faa193bb0a1b5f87e45f + +if [ -n "$CROSS_BUILD" ]; then + pre_configure() { + sed -i -e "s/^check_lib_or_exit(lib => 'gmp', header => 'gmp.h');//" Makefile.PL + } +fi diff --git a/srcpkgs/perl-Math-Prime-Util/template b/srcpkgs/perl-Math-Prime-Util/template index 77159a58152..680ba133a80 100644 --- a/srcpkgs/perl-Math-Prime-Util/template +++ b/srcpkgs/perl-Math-Prime-Util/template @@ -13,3 +13,9 @@ license="Artistic, GPL-1" homepage="https://github.com/danaj/Math-Prime-Util" distfiles="${CPAN_SITE}/Math/${pkgname/perl-/}-${version}.tar.gz" checksum=26dbcdfe8d0f7efdc049a449430acc2d7b014746cd265db046137e89da5fb7aa + +if [ -n "$CROSS_BUILD" ]; then + pre_configure() { + sed -i -e "s/^\(my \$have_gmp =\).*/\1 1;/" Makefile.PL + } +fi