diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index b48521ca57..b37cfded6b 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -1,7 +1,7 @@ # Template build file for 'perl'. pkgname=perl version=5.24.1 -revision=2 +revision=3 _perl_cross_version=1.1.3 build_style=gnu-configure hostmakedepends="less" @@ -166,6 +166,13 @@ do_configure() { _args+=" --target=$XBPS_CROSS_TRIPLET" fi + # perl-cross autodetection fails. Need perl -V:lseeksize = 8. + # (default on musl.) + case "$XBPS_TARGET_MACHINE" in + i686|armv6l|armv7l) + CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT " + esac + export LD="$CC" ./configure --prefix=/usr $_args \ -Dcccdlflags="-fPIC" \