all messages for Guix-related lists mirrored at yhetil.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

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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.