aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2020-11-16 14:38:57 +0200
committerEfraim Flashner <efraim@flashner.co.il>2020-11-16 14:38:57 +0200
commitdfb4a28575d7afb7883837d51249b3757761ada7 (patch)
tree6c352a4fea778f4fdb2a91f9f9103662da6e3a11 /gnu/packages
parent60587450e04d4583b790b36d6ab506831adb230b (diff)
downloadguix-dfb4a28575d7afb7883837d51249b3757761ada7.tar.gz
guix-dfb4a28575d7afb7883837d51249b3757761ada7.zip
gnu: lz4: Cross compile.
* gnu/packages/compression.scm (lz4)[arguments]: When targeting another system use cc-for-target in make-flags.
Diffstat (limited to 'gnu/packages')
-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 c5e72a5084..d61c6bf719 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -804,7 +804,10 @@ decompression of some loosely related file formats used by Microsoft.")
("valgrind" ,valgrind)))
(arguments
`(#:test-target "test"
- #:make-flags (list "CC=gcc"
+ ;; TODO: Integrate in next rebuild cycle.
+ #:make-flags (list ,(if (%current-target-system)
+ (string-append "CC=" (cc-for-target))
+ "CC=gcc")
(string-append "prefix=" (assoc-ref %outputs "out")))
#:phases (modify-phases %standard-phases
(delete 'configure) ;no configure script