mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
gnu: iw: Fix cross-compilation.
* gnu/packages/linux.scm (iw)[arguments]: Set PKG_CONFIG and CC variables correctly for cross-compilation.
This commit is contained in:
parent
c6a7fe7937
commit
88ca4029a6
1 changed files with 12 additions and 2 deletions
|
@ -2071,8 +2071,18 @@ (define-public iw
|
||||||
(native-inputs `(("pkg-config" ,pkg-config)))
|
(native-inputs `(("pkg-config" ,pkg-config)))
|
||||||
(inputs `(("libnl" ,libnl)))
|
(inputs `(("libnl" ,libnl)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
|
`(#:make-flags
|
||||||
"CC=gcc")
|
(let* ((target ,(%current-target-system))
|
||||||
|
(gcc (if target (string-append target "-gcc") "gcc"))
|
||||||
|
(pkg-config (if target
|
||||||
|
(string-append target "-pkg-config")
|
||||||
|
"pkg-config")))
|
||||||
|
(list
|
||||||
|
(string-append "CC=" gcc)
|
||||||
|
(string-append "PKG_CONFIG="
|
||||||
|
(assoc-ref %build-inputs "pkg-config")
|
||||||
|
"/bin/" pkg-config)
|
||||||
|
(string-append "PREFIX=" (assoc-ref %outputs "out"))))
|
||||||
#:phases (modify-phases %standard-phases (delete 'configure))))
|
#:phases (modify-phases %standard-phases (delete 'configure))))
|
||||||
(home-page "https://wireless.wiki.kernel.org/")
|
(home-page "https://wireless.wiki.kernel.org/")
|
||||||
(synopsis "Tool for configuring wireless devices")
|
(synopsis "Tool for configuring wireless devices")
|
||||||
|
|
Loading…
Reference in a new issue