perl: simplify the useless arch checking

This commit is contained in:
q66 2020-04-30 02:31:33 +02:00
parent 45a6754b46
commit 129f2c39bb
1 changed files with 8 additions and 15 deletions

View File

@ -165,21 +165,14 @@ do_configure() {
fi
LDFLAGS+=" -pthread"
# perl-cross autodetection fails. Need perl -V:lseeksize = 8.
# (default on musl.)
case "$XBPS_TARGET_MACHINE" in
i686|armv5tel|armv6l|armv7l|aarch64|ppc64le|ppc64|ppc)
HOSTLDFLAGS+=" -pthread"
export HOSTLDFLAGS
CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT64 ";;
*-musl)
HOSTCFLAGS+=" -D_GNU_SOURCE"
export HOSTCFLAGS
HOSTLDFLAGS+=" -pthread"
export HOSTLDFLAGS
CFLAGS+=" -DNO_POSIX_2008_LOCALE"
CFLAGS+=" -D_GNU_SOURCE";;
esac
export HOSTLDFLAGS+=" -pthread"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
export HOSTCFLAGS+=" -D_GNU_SOURCE"
export CFLAGS+=" -DNO_POSIX_2008_LOCALE -D_GNU_SOURCE"
else
export CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT64"
fi
export LD="$CC"
./configure --prefix=/usr $_args \