gnu: libaio: Fix cross-compilation.
* gnu/packages/linux.scm (libaio)[arguments]: Rewrite as G-expression to avoid %OUTPUT when cross-compiling.
This commit is contained in:
parent
8d8272dd47
commit
1e1cba00d5
1 changed files with 16 additions and 11 deletions
|
@ -5224,17 +5224,22 @@ Linux Device Mapper multipathing driver:
|
||||||
"14mlqdapjqq1dhpkdgy5z83mvsaz36fcxca7a4z6hinmr7r6415b"))))
|
"14mlqdapjqq1dhpkdgy5z83mvsaz36fcxca7a4z6hinmr7r6415b"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags
|
(list #:make-flags
|
||||||
(let ((target ,(%current-target-system)))
|
#~(let ((target #$(%current-target-system)))
|
||||||
(list (string-append "prefix=" %output)
|
;; XXX TODO: Replace with simply #$OUTPUT on core-updates.
|
||||||
(string-append
|
(list (string-append "prefix=" #$(if (%current-target-system)
|
||||||
"CC=" (if target
|
#~#$output
|
||||||
(string-append (assoc-ref %build-inputs "cross-gcc")
|
#~%output))
|
||||||
"/bin/" target "-gcc")
|
(string-append
|
||||||
"gcc"))))
|
"CC=" (if target
|
||||||
#:test-target "partcheck" ; need root for a full 'check'
|
(string-append (assoc-ref %build-inputs
|
||||||
#:phases
|
"cross-gcc")
|
||||||
(modify-phases %standard-phases (delete 'configure)))) ; no configure script
|
"/bin/" target "-gcc")
|
||||||
|
"gcc"))))
|
||||||
|
#:test-target "partcheck" ; need root for a full 'check'
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(delete 'configure)))) ; no configure script
|
||||||
(home-page "https://pagure.io/libaio")
|
(home-page "https://pagure.io/libaio")
|
||||||
(synopsis "Linux-native asynchronous I/O access library")
|
(synopsis "Linux-native asynchronous I/O access library")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue