perl: simplify the useless arch checking

This commit is contained in:
q66 2020-04-30 02:31:33 +02:00
parent 45a6754b46
commit 129f2c39bb

View file

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