Github messages for voidlinux
 help / color / mirror / Atom feed
From: Johnnynator <Johnnynator@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] [WIP] LuaJIT: allow cross compiling to 32bit systems in x86_64-musl masterdir
Date: Tue, 31 Mar 2020 19:27:34 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20499@inbox.vuxu.org> (raw)

[-- 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

             reply	other threads:[~2020-03-31 17:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-31 17:27 Johnnynator [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20499@inbox.vuxu.org \
    --to=johnnynator@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).