mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: progress: Fix cross-compilation.
* gnu/packages/admin.scm (progress)[arguments]: Use CC-FOR-TARGET and a target-specific pkg-config when cross-compiling.
This commit is contained in:
parent
4187e5401f
commit
b97b8b44ca
1 changed files with 8 additions and 2 deletions
|
@ -231,8 +231,14 @@ (define-public progress
|
|||
`(("ncurses" ,ncurses)))
|
||||
(arguments
|
||||
`(#:tests? #f ; no test suite
|
||||
#:make-flags (list "CC=gcc"
|
||||
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
||||
#:make-flags
|
||||
(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
|
||||
(modify-phases %standard-phases
|
||||
(delete 'configure)))) ; no configure script
|
||||
|
|
Loading…
Reference in a new issue