perl: fix cross mips* build

Cross building for *-musl is possible only from x86_64-musl or
i686-musl environments. x86_64 or i686 do no longer work due to
missing symbols strlcat and strlcopy when linking the host miniperl.

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-05-08 06:25:00 +02:00
parent 236b48c752
commit 48fe9fd05a
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -175,9 +175,11 @@ do_configure() {
export HOSTLDFLAGS
CFLAGS+=" -D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT64 ";;
*-musl)
HOSTCFLAGS+=" -D_GNU_SOURCE"
HOSTCFLAGS+=" -D_DEFAULT_SOURCE"
export HOSTCFLAGS
CFLAGS+=" -D_GNU_SOURCE";;
HOSTLDFLAGS+=" -pthread"
export HOSTLDFLAGS
CFLAGS+=" -D_DEFAULT_SOURCE";;
esac
export LD="$CC"