From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: [PR PATCH] adding go cross compiling flags example
Date: Sat, 14 Sep 2019 10:41:49 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-14445@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 523 bytes --]
There is a new pull request by sammerry against master on the void-packages repository
https://github.com/sammerry/void-packages master
https://github.com/void-linux/void-packages/pull/14445
adding go cross compiling flags example
Creating this pull request as an example for feed back.
I'd like to add cross compiling support for a few go projects like docker. Is this an appropriate place to inject go's cross compile flags?
A patch file from https://github.com/void-linux/void-packages/pull/14445.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-master-14445.patch --]
[-- Type: text/x-diff, Size: 719 bytes --]
From c331a6448ffb0618f566245dc3e5828ba2152118 Mon Sep 17 00:00:00 2001
From: Sam Merry <sammerry@users.noreply.github.com>
Date: Sat, 14 Sep 2019 01:37:39 -0700
Subject: [PATCH] adding go cross compiling flags example
---
common/cross-profiles/armv7l.sh | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/common/cross-profiles/armv7l.sh b/common/cross-profiles/armv7l.sh
index e2d9d98cd56..3d0c02b4a0e 100644
--- a/common/cross-profiles/armv7l.sh
+++ b/common/cross-profiles/armv7l.sh
@@ -8,3 +8,7 @@ XBPS_CROSS_CXXFLAGS="$XBPS_CROSS_CFLAGS"
XBPS_CROSS_FFLAGS=""
XBPS_CROSS_RUSTFLAGS="--sysroot=${XBPS_CROSS_BASE}/usr"
XBPS_CROSS_RUST_TARGET="armv7-unknown-linux-gnueabihf"
+
+GOOS=linux
+GOARCH=arm
+GOARM=7
next reply other threads:[~2019-09-14 8:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-14 8:41 voidlinux-github [this message]
2019-09-14 8:47 ` voidlinux-github
2019-09-14 8:47 ` [PR PATCH] [Closed]: " voidlinux-github
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-14445@inbox.vuxu.org \
--to=voidlinux-github@inbox.vuxu.org \
--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).