Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] [WIP] LuaJIT: allow cross compiling to 32bit systems in x86_64-musl masterdir
@ 2020-03-31 17:27 Johnnynator
  2020-04-01  1:39 ` ericonr
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Johnnynator @ 2020-03-31 17:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

There is a new pull request by Johnnynator against master on the void-packages repository

https://github.com/Johnnynator/void-packages LuaJIT
https://github.com/void-linux/void-packages/pull/20499

[WIP] LuaJIT: allow cross compiling to 32bit systems in x86_64-musl masterdir
Just a stupid workaround for musl, but I haven't tested the resulting binary yet. So don't merge except you tested it :)

A patch file from https://github.com/void-linux/void-packages/pull/20499.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-LuaJIT-20499.patch --]
[-- Type: text/x-diff, Size: 837 bytes --]

From 463fe264c9b4a1ec3e11d29e86bcace7d4615d59 Mon Sep 17 00:00:00 2001
From: John <me@johnnynator.dev>
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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-04-10 21:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 17:27 [PR PATCH] [WIP] LuaJIT: allow cross compiling to 32bit systems in x86_64-musl masterdir Johnnynator
2020-04-01  1:39 ` ericonr
2020-04-01  2:21 ` q66
2020-04-01  2:22 ` q66
2020-04-01 13:23 ` [PR PATCH] [Updated] " Johnnynator
2020-04-06 12:01 ` Johnnynator
2020-04-10 21:51 ` [PR PATCH] [Merged]: " Johnnynator

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).