Archived
1
0
Fork 0

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:
Tobias Geerinckx-Rice 2022-01-08 00:50:07 +01:00
parent a1846e9b91
commit a00543b439
No known key found for this signature in database
GPG key ID: 0DB0FF884F556D79

View file

@ -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