diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2020-11-16 14:47:37 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2020-11-16 14:47:37 +0200 |
commit | 9f58c83c3a94210fe75297eff09a56680c4c9fa8 (patch) | |
tree | 123fe18dd0252f67424fbb76e3f961e08a9d4aa5 | |
parent | 40b52444bb532489d8ac7418d304691a18fdf177 (diff) |
gnu: zstd: Cross compile.
* gnu/packages/compression.scm (zstd)[arguments]: When targeting another
system use cc-for-target in make-flags.
-rw-r--r-- | gnu/packages/compression.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 2323215034..e7993f2b42 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -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") |