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:
parent
236b48c752
commit
48fe9fd05a
1 changed files with 4 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue