From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] partial fix for zlib cross compilation Date: Tue, 10 Dec 2013 14:00:15 +0100 Message-ID: <87y53suahs.fsf@gnu.org> References: <20131210104905.GA27631@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54950) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqMvG-00011F-EF for guix-devel@gnu.org; Tue, 10 Dec 2013 08:00:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqMvB-0003si-FC for guix-devel@gnu.org; Tue, 10 Dec 2013 08:00:22 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:13193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqMvB-0003rj-9A for guix-devel@gnu.org; Tue, 10 Dec 2013 08:00:17 -0500 In-Reply-To: <20131210104905.GA27631@jocasta.intra> (John Darrington's message of "Tue, 10 Dec 2013 11:49:06 +0100") 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: John Darrington Cc: guix-devel@gnu.org John Darrington skribis: > From 592a7329b446d2d8e8a1f7c2e5e6bcb622c7c69c Mon Sep 17 00:00:00 2001 > From: John Darrington > Date: Mon, 9 Dec 2013 22:57:15 +0100 > Subject: [PATCH] gnu: compression: Fix cross-compilation of zlib. > > * gnu/packages/compression.scm : Zlib uses a non-standard > way of configuring for cross-compilation. Thanks to Ludovic > for showing me the correct way to fix this. Applied with proper formatting. Thanks! > - (zero? (system* "./configure" > - (string-append "--prefix=3D" out)))= )) > + ,@(if (%current-target-system) `((setenv "CHOST" > + ,(%current= -target-system))) '()) Do you know whether all GNU triplets are recognized, or if there=E2=80=99s = some special treatment going on? (I confirm it does the right thing for =E2=80=98mips64el-linux-gnu=E2=80=99.) Thanks, Ludo=E2=80=99.