* [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation.
@ 2022-10-13 12:37 Christopher Baines
2022-10-16 18:31 ` bug#58491: " Christopher Baines
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Baines @ 2022-10-13 12:37 UTC (permalink / raw)
To: 58491
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.
---
gnu/packages/compression.scm | 6 ++++++
1 file changed, 6 insertions(+)
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 @@ (define-public lzip
(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
--
2.37.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-16 18:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-13 12:37 [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation Christopher Baines
2022-10-16 18:31 ` bug#58491: " Christopher Baines
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.