gnu: progress: Fix cross-compilation.
* gnu/packages/admin.scm (progress)[arguments]: Use CC-FOR-TARGET and a target-specific pkg-config when cross-compiling.master
parent
4187e5401f
commit
b97b8b44ca
|
@ -231,8 +231,14 @@ usual file attributes can be checked for inconsistencies.")
|
||||||
`(("ncurses" ,ncurses)))
|
`(("ncurses" ,ncurses)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; no test suite
|
`(#:tests? #f ; no test suite
|
||||||
#:make-flags (list "CC=gcc"
|
#:make-flags
|
||||||
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
(let ((target ,(%current-target-system)))
|
||||||
|
(list ,(string-append "CC=" (cc-for-target))
|
||||||
|
(string-append "PKG_CONFIG="
|
||||||
|
(if target
|
||||||
|
(string-append target "-pkg-config")
|
||||||
|
"pkg-config"))
|
||||||
|
(string-append "PREFIX=" (assoc-ref %outputs "out"))))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)))) ; no configure script
|
(delete 'configure)))) ; no configure script
|
||||||
|
|
Reference in New Issue