summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-11-16 14:47:37 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-11-16 14:47:37 +0200
commit9f58c83c3a94210fe75297eff09a56680c4c9fa8 (patch)
tree123fe18dd0252f67424fbb76e3f961e08a9d4aa5 /gnu
parent40b52444bb532489d8ac7418d304691a18fdf177 (diff)
downloadguix-9f58c83c3a94210fe75297eff09a56680c4c9fa8.tar.gz
gnu: zstd: Cross compile.
* gnu/packages/compression.scm (zstd)[arguments]: When targeting another
system use cc-for-target in make-flags.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/compression.scm5
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")