From 9f58c83c3a94210fe75297eff09a56680c4c9fa8 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 16 Nov 2020 14:47:37 +0200 Subject: gnu: zstd: Cross compile. * gnu/packages/compression.scm (zstd)[arguments]: When targeting another system use cc-for-target in make-flags. --- gnu/packages/compression.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnu/packages/compression.scm') 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 @@ (define-public zstd #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") -- cgit v1.2.3