gnu: lz4: Cross compile.

* gnu/packages/compression.scm (lz4)[arguments]: When targeting another
system use cc-for-target in make-flags.
This commit is contained in:
Efraim Flashner 2020-11-16 14:38:57 +02:00
parent 60587450e0
commit dfb4a28575
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -804,7 +804,10 @@ (define-public lz4
("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