From 463fe264c9b4a1ec3e11d29e86bcace7d4615d59 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 31 Mar 2020 17:21:18 +0200 Subject: [PATCH] LuaJIT: allow cross compiling to 32bit systems in x86_64-musl masterdir --- srcpkgs/LuaJIT/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template index 7e13bc38afe..4538c884b96 100644 --- a/srcpkgs/LuaJIT/template +++ b/srcpkgs/LuaJIT/template @@ -18,6 +18,9 @@ if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then if [ "$XBPS_MACHINE" = "x86_64" ]; then hostmakedepends+=" gcc-multilib" _cross_cc="cc -m32" + elif [ "$XBPS_MACHINE" = "x86_64-musl" ]; then + hostmakedepends+=" cross-i686-linux-musl" + _cross_cc="i686-linux-musl-gcc -static" else broken="Host and target wordsize must match" fi