gnu: libaio: Fix cross-compilation.
* gnu/packages/linux.scm (libaio)[arguments]: When cross-compiling, set CC to the cross-gcc in #:make-flags.
This commit is contained in:
parent
a6046f24dd
commit
f847d9dcda
@ -3838,8 +3838,14 @@ Linux Device Mapper multipathing driver:
|
|||||||
"0ajhzbqjwsmz51gwccfyw6w9k4j4gmxcl2ph30sfn2gxv0d8gkv2"))))
|
"0ajhzbqjwsmz51gwccfyw6w9k4j4gmxcl2ph30sfn2gxv0d8gkv2"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:make-flags
|
`(#:make-flags
|
||||||
(list "CC=gcc" (string-append "prefix=" %output))
|
(let ((target ,(%current-target-system)))
|
||||||
|
(list (string-append "prefix=" %output)
|
||||||
|
(string-append
|
||||||
|
"CC=" (if target
|
||||||
|
(string-append (assoc-ref %build-inputs "cross-gcc")
|
||||||
|
"/bin/" target "-gcc")
|
||||||
|
"gcc"))))
|
||||||
#:test-target "partcheck" ; need root for a full 'check'
|
#:test-target "partcheck" ; need root for a full 'check'
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases (delete 'configure)))) ; no configure script
|
(modify-phases %standard-phases (delete 'configure)))) ; no configure script
|
||||||
|
Loading…
x
Reference in New Issue
Block a user