emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#58491: closed ([PATCH] gnu: lzip: Fix cross-compilation.)


From: GNU bug Tracking System
Subject: bug#58491: closed ([PATCH] gnu: lzip: Fix cross-compilation.)
Date: Sun, 16 Oct 2022 18:33:02 +0000

Your message dated Sun, 16 Oct 2022 19:31:45 +0100
with message-id <874jw3bowk.fsf@cbaines.net>
and subject line Re: [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation.
has caused the debbugs.gnu.org bug report #58491,
regarding [PATCH] gnu: lzip: Fix cross-compilation.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
58491: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=58491
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: [PATCH] gnu: lzip: Fix cross-compilation. Date: Thu, 13 Oct 2022 13:37:46 +0100
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




--- End Message ---
--- Begin Message --- Subject: Re: [bug#58491] [PATCH] gnu: lzip: Fix cross-compilation. Date: Sun, 16 Oct 2022 19:31:45 +0100 User-agent: mu4e 1.8.9; emacs 28.1
Christopher Baines <mail@cbaines.net> writes:

> 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(+)

Pushed to master as 69bbb720db7a77b4a8cd2973fb8e9a794b3213d3.

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]