guix-commits
[Top][All Lists]
Advanced

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

04/14: gnu: hdparm: Fix cross-compilation.


From: guix-commits
Subject: 04/14: gnu: hdparm: Fix cross-compilation.
Date: Tue, 2 Jun 2020 20:21:45 -0400 (EDT)

nckx pushed a commit to branch master
in repository guix.

commit 7dd57cc00e949dd414ed1c820d6452b2c9978184
Author: Tobias Geerinckx-Rice <me@tobias.gr>
AuthorDate: Wed Jun 3 01:38:11 2020 +0200

    gnu: hdparm: Fix cross-compilation.
    
    * gnu/packages/linux.scm (hdparm)[arguments]: Use CC-FOR-TARGET.
    Don't strip the binary during the build phase.
---
 gnu/packages/linux.scm | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e60cc79..30420b0 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -3821,10 +3821,13 @@ isolation or root privileges.")
                 "03z1qm8zbgpxagk3994lvp24yqsshjibkwg05v9p3q1w7y48xrws"))))
     (build-system gnu-build-system)
     (arguments
-     `(#:make-flags (let ((out (assoc-ref %outputs "out")))
-                      (list (string-append "binprefix=" out)
-                            (string-append "manprefix=" out)
-                            "CC=gcc"))
+     `(#:make-flags
+       (let ((out (assoc-ref %outputs "out")))
+         (list (string-append "binprefix=" out)
+               (string-append "manprefix=" out)
+               ,(string-append "CC=" (cc-for-target))
+               ;; Let Guix strip the binaries and not break cross-compilation.
+               "STRIP=true"))
        #:phases
        (modify-phases %standard-phases
          (delete 'configure))           ; no configure script



reply via email to

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