gnu: cpulimit: Cross compile.
* gnu/packages/admin.scm (cpulimit)[arguments]: Use cc-for-target in custom 'build and 'check phases.master
parent
12110f949d
commit
bc63198830
|
@ -2384,10 +2384,10 @@ lookup to YAML Mode. You could enable the mode with @code{(add-hook
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(replace 'build
|
(replace 'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "make" "CC=gcc" "-Csrc")))
|
(invoke "make" (string-append "CC=" ,(cc-for-target)) "-Csrc")))
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(invoke "make" "CC=gcc" "-Ctests")))
|
(invoke "make" (string-append "CC=" ,(cc-for-target)) "-Ctests")))
|
||||||
(replace 'install
|
(replace 'install
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
|
Reference in New Issue