mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00: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:
parent
40b52444bb
commit
9f58c83c3a
1 changed files with 4 additions and 1 deletions
|
@ -1426,7 +1426,10 @@ or junctions, and always follows hard links.")
|
||||||
|
|
||||||
#t))))
|
#t))))
|
||||||
#:make-flags
|
#: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 "PREFIX=" (assoc-ref %outputs "out"))
|
||||||
(string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib")
|
(string-append "LIBDIR=" (assoc-ref %outputs "lib") "/lib")
|
||||||
(string-append "INCLUDEDIR=" (assoc-ref %outputs "lib") "/include")
|
(string-append "INCLUDEDIR=" (assoc-ref %outputs "lib") "/include")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue