gnu: checkpolicy: Fix cross-compilation.
* gnu/packages/selinux.scm (checkpolicy)[arguments]: Check for (%CURRENT-TARGET-SYSTEM) and adjust the "CC" flag accordingly.master
parent
7981c0be07
commit
2401678f56
|
@ -106,12 +106,17 @@ boolean settings).")
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f ; there is no check target
|
`(#:tests? #f ; there is no check target
|
||||||
#:make-flags
|
#:make-flags
|
||||||
(let ((out (assoc-ref %outputs "out")))
|
(let ((out (assoc-ref %outputs "out"))
|
||||||
|
(target ,(%current-target-system)))
|
||||||
(list (string-append "PREFIX=" out)
|
(list (string-append "PREFIX=" out)
|
||||||
(string-append "LIBSEPOLA="
|
(string-append "LIBSEPOLA="
|
||||||
(assoc-ref %build-inputs "libsepol")
|
(assoc-ref %build-inputs "libsepol")
|
||||||
"/lib/libsepol.a")
|
"/lib/libsepol.a")
|
||||||
"CC=gcc"))
|
(string-append "CC="
|
||||||
|
(if target
|
||||||
|
(string-append (assoc-ref %build-inputs "cross-gcc")
|
||||||
|
"/bin/" target "-gcc")
|
||||||
|
"gcc"))))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
|
|
Reference in New Issue