mirror of
git://git.savannah.gnu.org/guix.git
synced 2023-12-14 03:33:07 +01:00
gnu: wpa-supplicant-minimal: Cross compile.
* gnu/packages/admin.scm (wpa-supplicant-minimal)[arguments]: Use cc-for-target in make-flags. Adjust custom 'configure phase to use the correct pkg-config for the target.
This commit is contained in:
parent
8f447b1ae5
commit
8ec5adce41
|
@ -1559,10 +1559,10 @@ features of sudo with a fraction of the codebase.")
|
||||||
#t))))
|
#t))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
`(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(replace 'configure
|
(replace 'configure
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda _
|
||||||
(chdir "wpa_supplicant")
|
(chdir "wpa_supplicant")
|
||||||
(copy-file "defconfig" ".config")
|
(copy-file "defconfig" ".config")
|
||||||
(let ((port (open-file ".config" "al")))
|
(let ((port (open-file ".config" "al")))
|
||||||
|
@ -1576,6 +1576,15 @@ features of sudo with a fraction of the codebase.")
|
||||||
CONFIG_LIBNL32=y
|
CONFIG_LIBNL32=y
|
||||||
CONFIG_READLINE=y\n" port)
|
CONFIG_READLINE=y\n" port)
|
||||||
(close-port port))
|
(close-port port))
|
||||||
|
;; Make sure we have a pkg-config when cross compiling
|
||||||
|
(substitute* '(".config"
|
||||||
|
"Android.mk"
|
||||||
|
"Makefile"
|
||||||
|
"dbus/Makefile")
|
||||||
|
(("pkg-config")
|
||||||
|
(or (which "pkg-config")
|
||||||
|
(which (string-append ,(%current-target-system)
|
||||||
|
"-pkg-config")))))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'install 'install-documentation
|
(add-after 'install 'install-documentation
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
@ -1604,7 +1613,7 @@ features of sudo with a fraction of the codebase.")
|
||||||
"wpa_supplicant.conf"))
|
"wpa_supplicant.conf"))
|
||||||
#t))))
|
#t))))
|
||||||
|
|
||||||
#:make-flags (list "CC=gcc"
|
#:make-flags (list (string-append "CC=" ,(cc-for-target))
|
||||||
(string-append "BINDIR=" (assoc-ref %outputs "out")
|
(string-append "BINDIR=" (assoc-ref %outputs "out")
|
||||||
"/sbin")
|
"/sbin")
|
||||||
(string-append "LIBDIR=" (assoc-ref %outputs "out")
|
(string-append "LIBDIR=" (assoc-ref %outputs "out")
|
||||||
|
|
Loading…
Reference in a new issue