perl: fix lseeksize on 32-bit glibc.

This resulted in ABI incompatibility "loadable library and perl binaries
are mismatched (got handshake key 0x7f00080, needed 0x7e00080)".

Fixes #5667.
This commit is contained in:
Leah Neukirchen 2017-02-03 13:31:21 +01:00
parent 1e840ac01e
commit 36735e1483
1 changed files with 8 additions and 1 deletions

View File

@ -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" \