guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: certdata2pem: Fix cross compiling.


From: guix-commits
Subject: 02/02: gnu: certdata2pem: Fix cross compiling.
Date: Wed, 27 Jan 2021 14:01:03 -0500 (EST)

efraim pushed a commit to branch core-updates
in repository guix.

commit 11a7bfbc466382eec17c427b8759efc90355dbb1
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Jan 27 20:59:53 2021 +0200

    gnu: certdata2pem: Fix cross compiling.
    
    * gnu/packages/certs.scm (certdata2pem)[arguments]: Use cc-for-target.
---
 gnu/packages/certs.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/certs.scm b/gnu/packages/certs.scm
index 9b82370..5bdf3b5 100644
--- a/gnu/packages/certs.scm
+++ b/gnu/packages/certs.scm
@@ -25,6 +25,7 @@
 (define-module (gnu packages certs)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (guix packages)
+  #:use-module (guix utils)
   #:use-module (guix download)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system trivial)
@@ -53,7 +54,8 @@
                     (delete 'configure)
                     (replace 'build
                       (lambda _
-                        (invoke "gcc" "certdata2pem.c" "-o" "certdata2pem")))
+                        (invoke ,(cc-for-target) "certdata2pem.c"
+                                "-o" "certdata2pem")))
                     (delete 'check)     ;no test suite
                     (replace 'install
                       (lambda* (#:key outputs #:allow-other-keys)



reply via email to

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