gnu: zstd: Cross compile.

* gnu/packages/compression.scm (zstd)[arguments]: When targeting another
system use cc-for-target in make-flags.
This commit is contained in:
Efraim Flashner 2020-11-16 14:47:37 +02:00
parent 40b52444bb
commit 9f58c83c3a
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -1426,7 +1426,10 @@ (define-public zstd
#t))))
#:make-flags
(list "CC=gcc"
;; TODO: Integrate in next rebuild cycle.
(list ,(if (%current-target-system)
(string-append "CC=" (cc-for-target))
"CC=gcc")
(string-append "PREFIX=" (assoc-ref %outputs "out"))
(string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib")
(string-append "INCLUDEDIR=" (assoc-ref %outputs "lib") "/include")