guix-commits
[Top][All Lists]
Advanced

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

01/03: gnu: lzlib: Support cross-compilation.


From: guix-commits
Subject: 01/03: gnu: lzlib: Support cross-compilation.
Date: Sat, 26 Sep 2020 17:18:06 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 31dcc272760e464df1ae2c33740febb070563825
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sat Sep 26 12:04:04 2020 +0200

    gnu: lzlib: Support cross-compilation.
    
    Until now, since lzlib's 'configure' ignores '--host', we'd always end
    up building it natively.
    
    * gnu/packages/compression.scm (lzlib)[arguments]: Use (cc-for-target)
    instead of "gcc".
---
 gnu/packages/compression.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index 5622af1..996c7d1 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -1,5 +1,5 @@
 ;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2014, 2015, 2017, 2019 Ludovic Courtès 
<ludo@gnu.org>
+;;; Copyright © 2012, 2013, 2014, 2015, 2017, 2019, 2020 Ludovic Courtès 
<ludo@gnu.org>
 ;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
 ;;; Copyright © 2014, 2015, 2018 Mark H Weaver <mhw@netris.org>
 ;;; Copyright © 2015 Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>
@@ -1763,7 +1763,7 @@ Clzip is intended to be fully compatible with the regular 
lzip package.")
     (build-system gnu-build-system)
     (arguments
      `(#:configure-flags
-       (list "CC=gcc"
+       (list (string-append "CC=" ,(cc-for-target))
              "--enable-shared")))       ; only static (.a) is built by default
     (home-page "https://www.nongnu.org/lzip/lzlib.html";)
     (synopsis "Lzip data compression C library")



reply via email to

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