guix-commits
[Top][All Lists]
Advanced

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

07/10: gnu: libmaxminddb: Cross-compile.


From: guix-commits
Subject: 07/10: gnu: libmaxminddb: Cross-compile.
Date: Tue, 11 Aug 2020 10:27:11 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 2113ddb742d908d5c8458e8e916804dfc1f748bf
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Aug 11 16:24:03 2020 +0200

    gnu: libmaxminddb: Cross-compile.
    
    * gnu/packages/geo.scm (libmaxminddb)[arguments]: Use CC-FOR-TARGET.
    Pass CC as a make flag instead of an environment variable.
---
 gnu/packages/geo.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/geo.scm b/gnu/packages/geo.scm
index 033da1e..b9e3f6c 100644
--- a/gnu/packages/geo.scm
+++ b/gnu/packages/geo.scm
@@ -1359,11 +1359,8 @@ ways, and relations) and their metadata tags.")
         (base32 "0fd4a4sxiiwzbd5h74wl1ijnb7xybjyybb7q41vdq3w8nk3zdzd5"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:phases
-       (modify-phases %standard-phases
-         (add-before 'configure 'set-cc-to-gcc
-           (lambda _
-             (setenv "CC" "gcc"))))))
+     `(#:make-flags
+       (list ,(string-append "CC=" (cc-for-target)))))
     (native-inputs
      `(("perl" ,perl)))
     (home-page "https://maxmind.github.io/libmaxminddb/";)



reply via email to

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