gnu: pigz: Fix cross-compilation.
authorTobias Geerinckx-Rice <me@tobias.gr>
Tue, 2 Jun 2020 17:11:05 +0000 (19:11 +0200)
committerTobias Geerinckx-Rice <me@tobias.gr>
Tue, 2 Jun 2020 18:50:17 +0000 (20:50 +0200)
* gnu/packages/compression.scm (pigz)[arguments]: Use CC-FOR-TARGET.

gnu/packages/compression.scm

index 568de1c..a6b0273 100644 (file)
@@ -875,7 +875,8 @@ extract such file systems.")
                       (symlink "pigz" (string-append bin  "/unpigz"))
                       (install-file "pigz.1" man)
                       #t))))
-       #:make-flags (list "CC=gcc")
+       #:make-flags
+       (list ,(string-append "CC=" (cc-for-target)))
        #:test-target "tests"))
     (inputs `(("zlib" ,zlib)))
     (home-page "https://zlib.net/pigz/")