gnu: hdparm: Fix cross-compilation.

* gnu/packages/linux.scm (hdparm)[arguments]: Use CC-FOR-TARGET.
Don't strip the binary during the build phase.
This commit is contained in:
Tobias Geerinckx-Rice 2020-06-03 01:38:11 +02:00
parent e45f0c79fb
commit 7dd57cc00e
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -3821,10 +3821,13 @@ (define-public hdparm
"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