unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Michael <fedora.dm0@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH] dmd: Support cross-compilation
Date: Tue, 08 Jul 2014 22:05:36 -0400	[thread overview]
Message-ID: <87vbr7thfz.fsf@gmail.com> (raw)

* Makefile.am (%.go): Specify the target platform.
---

Hi,

Configuring different build and host platforms could result in guile
object files for the wrong CPU architecture.  Can something like this
set the target for guild?

Thanks.

David

 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 3329382..8e075bc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -115,7 +115,8 @@ modules/dmd/config.scm: modules/dmd/config.scm.in Makefile
 %.go: %.scm $(templates:%.in=%)
 	$(MKDIR_P) "`dirname "$@"`"
 	LC_ALL=C					\
-	$(GUILD) compile -L "$(top_builddir)/modules"	\
+	$(GUILD) compile --target="$(host)"		\
+	  -L "$(top_builddir)/modules"			\
 	  -L "$(top_srcdir)/modules"			\
 	  -Wformat -Wunbound-variable -Warity-mismatch	\
 	  -o "$@" "$<"
-- 
1.9.3

             reply	other threads:[~2014-07-09  2:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09  2:05 David Michael [this message]
2014-07-11  8:15 ` [PATCH] dmd: Support cross-compilation Ludovic Courtès

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=87vbr7thfz.fsf@gmail.com \
    --to=fedora.dm0@gmail.com \
    --cc=guix-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).