perl: fix cross and 32-bit builds.
The template now needs a clean up, TBD later.
This commit is contained in:
parent
1001188a07
commit
fbc3704801
|
@ -1,7 +1,7 @@
|
|||
# Template build file for 'perl'.
|
||||
pkgname=perl
|
||||
version=5.26.1
|
||||
revision=2
|
||||
revision=3
|
||||
_perl_cross_version=1.1.6
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="less"
|
||||
|
@ -170,8 +170,13 @@ do_configure() {
|
|||
# (default on musl.)
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
i686|armv6l|armv7l)
|
||||
CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT ";;
|
||||
LDFLAGS+="-pthread"
|
||||
HOSTLDFLAGS+="-pthread"
|
||||
export HOSTLDFLAGS
|
||||
CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT64 ";;
|
||||
*-musl)
|
||||
HOSTCFLAGS+=" -D_GNU_SOURCE"
|
||||
export HOSTCFLAGS
|
||||
CFLAGS+=" -D_GNU_SOURCE";;
|
||||
esac
|
||||
|
||||
|
|
Loading…
Reference in New Issue