From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Michael Subject: [PATCH] dmd: Support cross-compilation Date: Tue, 08 Jul 2014 22:05:36 -0400 Message-ID: <87vbr7thfz.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4hEZ-0007BC-Ab for guix-devel@gnu.org; Tue, 08 Jul 2014 22:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4hEU-0004sN-7B for guix-devel@gnu.org; Tue, 08 Jul 2014 22:03:47 -0400 Received: from mail-qc0-x230.google.com ([2607:f8b0:400d:c01::230]:52526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4hEU-0004sI-08 for guix-devel@gnu.org; Tue, 08 Jul 2014 22:03:42 -0400 Received: by mail-qc0-f176.google.com with SMTP id w7so6228089qcr.35 for ; Tue, 08 Jul 2014 19:03:41 -0700 (PDT) Received: from callisto (c-68-81-204-146.hsd1.pa.comcast.net. [68.81.204.146]) by mx.google.com with ESMTPSA id c6sm71021894qag.36.2014.07.08.19.03.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jul 2014 19:03:40 -0700 (PDT) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org * 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