~ruther/guix-local

7dd57cc00e949dd414ed1c820d6452b2c9978184 — Tobias Geerinckx-Rice 6 years ago e45f0c7
gnu: hdparm: Fix cross-compilation.

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

M gnu/packages/linux.scm
M gnu/packages/linux.scm => gnu/packages/linux.scm +7 -4
@@ 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