mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 14:56:54 +01:00
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:
parent
e45f0c79fb
commit
7dd57cc00e
1 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue