guix-commits
[Top][All Lists]
Advanced

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

06/12: gnu: nvme-cli: Fix cross-compilation.


From: guix-commits
Subject: 06/12: gnu: nvme-cli: Fix cross-compilation.
Date: Tue, 2 Jun 2020 14:50:47 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 2b9ce1007df59820d33c806d5feec04a38d59165
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Tue Jun 2 19:17:16 2020 +0200

    gnu: nvme-cli: Fix cross-compilation.
    
    * gnu/packages/linux.scm (nvme-cli)[arguments]: Use CC-FOR-TARGET.
---
 gnu/packages/linux.scm | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index 0a154fd..4acd508 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3859,15 +3859,17 @@ Translation (@dfn{SAT}) are also supported.")
               (file-name (git-file-name name version))))
     (build-system gnu-build-system)
     (arguments
-     `(#:make-flags (list "CC=gcc")
+     `(#:make-flags
+       (list ,(string-append "CC=" (cc-for-target)))
        #:phases (modify-phases %standard-phases
-                  (delete 'configure) ; No ./configure script
+                  (delete 'configure)   ; no ./configure script
                   (replace 'install
                     (lambda _
                       (invoke "make" "install-spec" "PREFIX="
                               (string-append "DESTDIR=" %output)))))
-       #:tests? #f)) ; The tests require sysfs, which is not accessible from
-                     ; the build environment
+       ;; The tests require sysfs, which is not accessible from from the build
+       ;; environment
+       #:tests? #f))
     (synopsis "NVM-Express user space tooling for Linux")
     (description "Nvme-cli is a utility to provide standards compliant tooling
 for NVM-Express drives.  It was made specifically for Linux as it relies on the



reply via email to

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