me
/
guix
Archived
1
0
Fork 0

gnu: lzip: Fix cross-compilation.

Previously the package would build, but the binaries would be build for the
host system, rather than the target.

* gnu/packages/compression.scm (lzip)[arguments]: Set CXX when cross
compiling.

Signed-off-by: Christopher Baines <mail@cbaines.net>
master
Christopher Baines 2022-10-13 13:37:46 +01:00
parent cbaf47bb8b
commit 69bbb720db
No known key found for this signature in database
GPG Key ID: 5E28A33B0B84F577
1 changed files with 6 additions and 0 deletions

View File

@ -632,6 +632,12 @@ some compression ratio).")
(base32 (base32
"0j59hx72258334rmkwn57ahr6s69nlrx0a5ip1jw2fbiwr12sd63")))) "0j59hx72258334rmkwn57ahr6s69nlrx0a5ip1jw2fbiwr12sd63"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments
;; The configure script doesn't recognise the --build or --host
;; arguments, so set CXX here
`(,@(if (%current-target-system)
`(#:make-flags (list ,(string-append "CXX=" (cxx-for-target))))
'())))
(home-page "https://www.nongnu.org/lzip/lzip.html") (home-page "https://www.nongnu.org/lzip/lzip.html")
(synopsis "Lossless data compressor based on the LZMA algorithm") (synopsis "Lossless data compressor based on the LZMA algorithm")
(description (description