mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 11:32:21 +02:00
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:
@@ -1426,7 +1426,10 @@ or junctions, and always follows hard links.")
|
||||
|
||||
#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")
|
||||
|
||||
Reference in New Issue
Block a user