aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2022-10-13 13:44:12 +0100
committerChristopher Baines <mail@cbaines.net>2022-10-13 13:44:12 +0100
commitfded0145c5f76fdcb83a0b2b0d07660d8a8acfcc (patch)
tree0cb4b6cd82eb61cc8dfc0576ba3defbbf02e0ec8
parent10d429f2fce321d8285684503094694ec3979865 (diff)
downloadguix-fded0145c5f76fdcb83a0b2b0d07660d8a8acfcc.tar
guix-fded0145c5f76fdcb83a0b2b0d07660d8a8acfcc.tar.gz
gnu: lziprecover: Fix cross-compilation.fix-lziprecover-cross-compilation
* gnu/packages/comression.scm (lziprecover)[arguments]: Set CXX when cross compiling.
-rw-r--r--gnu/packages/compression.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 684979018c..ba9f838130 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -653,6 +653,12 @@ archiving. Lzip is a clean implementation of the LZMA algorithm.")
(base32
"0wmmyi03fv2lflsir5ldrsv04q57k3hmlqajzb1m3p86gwbh967j"))))
(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/lziprecover.html")
(synopsis "Recover and decompress data from damaged lzip files")
(description