guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] dmd: Support cross-compilation


From: David Michael
Subject: [PATCH] dmd: Support cross-compilation
Date: Tue, 08 Jul 2014 22:05:36 -0400

* 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 via email to

[Prev in Thread] Current Thread [Next in Thread]