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. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
4af2447e37
commit
e67253dbe2
|
@ -44,11 +44,16 @@
|
||||||
`(#:phases (alist-replace
|
`(#:phases (alist-replace
|
||||||
'configure
|
'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
;; Zlib's home-made `configure' doesn't fails when passed
|
;; Zlib's home-made `configure' fails when passed
|
||||||
;; extra flags like `--enable-fast-install', so we need to
|
;; extra flags like `--enable-fast-install', so we need to
|
||||||
;; invoke it with just what it understand.
|
;; invoke it with just what it understand.
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(let ((out (assoc-ref outputs "out")))
|
||||||
(zero? (system* "./configure"
|
;; 'configure' doesn't understand '--host'.
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
`((setenv "CHOST" ,(%current-target-system)))
|
||||||
|
'())
|
||||||
|
(zero?
|
||||||
|
(system* "./configure"
|
||||||
(string-append "--prefix=" out)))))
|
(string-append "--prefix=" out)))))
|
||||||
%standard-phases)))
|
%standard-phases)))
|
||||||
(home-page "http://zlib.net/")
|
(home-page "http://zlib.net/")
|
||||||
|
|
Loading…
Reference in New Issue