3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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
Signed by untrusted user: efraim
GPG key ID: 41AAE7DCCA3D8351

View file

@ -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