From 48fe9fd05a237b6967ecd57186f7211f85984e17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 8 May 2018 06:25:00 +0200 Subject: [PATCH] perl: fix cross mips* build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- srcpkgs/perl/template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/srcpkgs/perl/template b/srcpkgs/perl/template index 5c14e1f61aa..129f70ad82d 100644 --- a/srcpkgs/perl/template +++ b/srcpkgs/perl/template @@ -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"