[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
16/17: gnu: zstd: Cross compile.
From: |
guix-commits |
Subject: |
16/17: gnu: zstd: Cross compile. |
Date: |
Mon, 16 Nov 2020 08:12:40 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit 9f58c83c3a94210fe75297eff09a56680c4c9fa8
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon Nov 16 14:47:37 2020 +0200
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(-)
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 2323215..e7993f2 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")
- 10/17: gnu: premake4: Cross compile., (continued)
- 10/17: gnu: premake4: Cross compile., guix-commits, 2020/11/16
- 07/17: gnu: hostapd: Cross compile., guix-commits, 2020/11/16
- 12/17: gnu: bam: Cross-compile., guix-commits, 2020/11/16
- 13/17: gnu: lz4: Cross compile., guix-commits, 2020/11/16
- 14/17: gnu: squashfs-tools: Cross compile., guix-commits, 2020/11/16
- 17/17: gnu: pzstd: Cross compile., guix-commits, 2020/11/16
- 03/17: gnu: dcadec: Cross compile., guix-commits, 2020/11/16
- 08/17: gnu: dtc: Cross compile., guix-commits, 2020/11/16
- 11/17: gnu: lua: Cross compile., guix-commits, 2020/11/16
- 15/17: gnu: bsdiff: Cross compile., guix-commits, 2020/11/16
- 16/17: gnu: zstd: Cross compile.,
guix-commits <=