gnu: iw: Fix cross-compilation.
* gnu/packages/linux.scm (iw)[arguments]: Rewrite as G-expression. Replace custom code with PKG-CONFIG-FOR-TARGET, and drop the unnecessary absolute file name altogether.
This commit is contained in:
parent
a1846e9b91
commit
a00543b439
1 changed files with 8 additions and 12 deletions
|
@ -3081,18 +3081,14 @@ configuration and monitoring interfaces.")
|
||||||
(native-inputs (list pkg-config))
|
(native-inputs (list pkg-config))
|
||||||
(inputs (list libnl))
|
(inputs (list libnl))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:make-flags
|
(list #:make-flags
|
||||||
(let* ((target ,(%current-target-system))
|
#~(list
|
||||||
(pkg-config (if target
|
(string-append "CC=" #$(cc-for-target))
|
||||||
(string-append target "-pkg-config")
|
(string-append "PKG_CONFIG=" #$(pkg-config-for-target))
|
||||||
"pkg-config")))
|
(string-append "PREFIX=" (assoc-ref %outputs "out")))
|
||||||
(list
|
#:phases
|
||||||
,(string-append "CC=" (cc-for-target))
|
#~(modify-phases %standard-phases
|
||||||
(string-append "PKG_CONFIG="
|
(delete 'configure)))) ; no configure script
|
||||||
(assoc-ref %build-inputs "pkg-config")
|
|
||||||
"/bin/" pkg-config)
|
|
||||||
(string-append "PREFIX=" (assoc-ref %outputs "out"))))
|
|
||||||
#: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")
|
||||||
(description
|
(description
|
||||||
|
|
Reference in a new issue