me
/
guix
Archived
1
0
Fork 0

gnu: iw: Fix cross-compilation.

* gnu/packages/linux.scm (iw)[arguments]: Set PKG_CONFIG and CC variables
correctly for cross-compilation.
master
Mathieu Othacehe 2019-12-16 12:39:18 +01:00
parent 0c25097e8b
commit 2e4c2a3ae9
No known key found for this signature in database
GPG Key ID: 8354763531769CA6
1 changed files with 12 additions and 2 deletions

View File

@ -2098,8 +2098,18 @@ configuration and monitoring interfaces.")
(native-inputs `(("pkg-config" ,pkg-config)))
(inputs `(("libnl" ,libnl)))
(arguments
`(#:make-flags (list (string-append "PREFIX=" (assoc-ref %outputs "out"))
"CC=gcc")
`(#:make-flags
(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))))
(home-page "https://wireless.wiki.kernel.org/")
(synopsis "Tool for configuring wireless devices")