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 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'perl'.
|
# Template build file for 'perl'.
|
||||||
pkgname=perl
|
pkgname=perl
|
||||||
version=5.26.1
|
version=5.26.1
|
||||||
revision=2
|
revision=3
|
||||||
_perl_cross_version=1.1.6
|
_perl_cross_version=1.1.6
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
hostmakedepends="less"
|
hostmakedepends="less"
|
||||||
|
@ -170,8 +170,13 @@ do_configure() {
|
||||||
# (default on musl.)
|
# (default on musl.)
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
i686|armv6l|armv7l)
|
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)
|
*-musl)
|
||||||
|
HOSTCFLAGS+=" -D_GNU_SOURCE"
|
||||||
|
export HOSTCFLAGS
|
||||||
CFLAGS+=" -D_GNU_SOURCE";;
|
CFLAGS+=" -D_GNU_SOURCE";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue