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. --- gnu/packages/compression.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index efffa92..723caa8 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -48,8 +48,11 @@ ;; extra flags like `--enable-fast-install', so we need to ;; invoke it with just what it understand. (let ((out (assoc-ref outputs "out"))) - (zero? (system* "./configure" - (string-append "--prefix=" out))))) + ,@(if (%current-target-system) `((setenv "CHOST" + ,(%current-target-system))) '()) + (zero? + (system* "./configure" + (string-append "--prefix=" out))))) %standard-phases))) (home-page "http://zlib.net/") (synopsis "The zlib compression library") -- 1.7.10.4