gnu: zstd: Cross compile.
authorEfraim Flashner <efraim@flashner.co.il>
Mon, 16 Nov 2020 12:47:37 +0000 (14:47 +0200)
committerEfraim Flashner <efraim@flashner.co.il>
Mon, 16 Nov 2020 12:47:37 +0000 (14:47 +0200)
* gnu/packages/compression.scm (zstd)[arguments]: When targeting another
system use cc-for-target in make-flags.

gnu/packages/compression.scm

index 2323215..e7993f2 100644 (file)
@@ -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")