diff options
author | Christopher Baines <mail@cbaines.net> | 2022-10-13 13:37:46 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2022-10-16 18:15:15 +0100 |
commit | 69bbb720db7a77b4a8cd2973fb8e9a794b3213d3 (patch) | |
tree | 99cfdcc73048befb42895a444b663882cd3ad368 | |
parent | cbaf47bb8b7cda6f6bb343d24866db03eb0445f7 (diff) | |
download | guix-69bbb720db7a77b4a8cd2973fb8e9a794b3213d3.tar.gz guix-69bbb720db7a77b4a8cd2973fb8e9a794b3213d3.zip |
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>
-rw-r--r-- | gnu/packages/compression.scm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm index 684979018c..dd0caa10ab 100644 --- a/gnu/packages/compression.scm +++ b/gnu/packages/compression.scm @@ -632,6 +632,12 @@ some compression ratio).") (base32 "0j59hx72258334rmkwn57ahr6s69nlrx0a5ip1jw2fbiwr12sd63")))) (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") (synopsis "Lossless data compressor based on the LZMA algorithm") (description |