unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] dmd: Support cross-compilation
@ 2014-07-09  2:05 David Michael
  2014-07-11  8:15 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: David Michael @ 2014-07-09  2:05 UTC (permalink / raw)
  To: guix-devel

* 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

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

* Re: [PATCH] dmd: Support cross-compilation
  2014-07-09  2:05 [PATCH] dmd: Support cross-compilation David Michael
@ 2014-07-11  8:15 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2014-07-11  8:15 UTC (permalink / raw)
  To: David Michael; +Cc: guix-devel

David Michael <fedora.dm0@gmail.com> skribis:

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

Definitely.  Pushed, thanks!

Ludo’.

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

end of thread, other threads:[~2014-07-11  8:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-09  2:05 [PATCH] dmd: Support cross-compilation David Michael
2014-07-11  8:15 ` Ludovic Courtès

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).