From b739b93fc8efc88b2aa52c3ed09d3613aac8c55f 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/srcpkgs/LuaJIT/template b/srcpkgs/LuaJIT/template index 7e13bc38afe..7c7641ef891 100644 --- a/srcpkgs/LuaJIT/template +++ b/srcpkgs/LuaJIT/template @@ -15,9 +15,9 @@ checksum=1ad2e34b111c802f9d0cdf019e986909123237a28c746b21295b63c9e785d9c3 _cross_cc="cc" if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then - if [ "$XBPS_MACHINE" = "x86_64" ]; then - hostmakedepends+=" gcc-multilib" - _cross_cc="cc -m32" + if [ "${XBPS_MACHINE/-musl/}" = "x86_64" ]; then + hostmakedepends+=" cross-i686-linux-musl" + _cross_cc="i686-linux-musl-gcc -static" else broken="Host and target wordsize must match" fi