mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-27 14:52:05 -05:00
gnu: wireless-tools: Fix cross-compilation.
* gnu/packages/linux.scm (wireless-tools)[arguments]: Replace 'configure phase to substitute CC, AR and RANLIB Makefile variables to suitable values when cross-compiling.
This commit is contained in:
parent
74471036f6
commit
a21b88f10c
1 changed files with 14 additions and 2 deletions
|
@ -2831,8 +2831,20 @@ (define-public wireless-tools
|
|||
(string-append "INSTALL_MAN=" %output "/share/man")
|
||||
(string-append "LDFLAGS=-Wl,-rpath=" %output "/lib")
|
||||
"BUILD_STATIC=")
|
||||
#:phases (modify-phases %standard-phases
|
||||
(delete 'configure))
|
||||
#:phases
|
||||
(modify-phases %standard-phases
|
||||
(replace 'configure
|
||||
(lambda* (#:key target #:allow-other-keys)
|
||||
(when ,(%current-target-system)
|
||||
;; Cross-compilation: use the cross tools.
|
||||
(substitute* (find-files "." "Makefile")
|
||||
(("CC = .*$")
|
||||
(string-append "CC = " target "-gcc\n"))
|
||||
(("AR = .*$")
|
||||
(string-append "AR = " target "-ar\n"))
|
||||
(("RANLIB = .*$")
|
||||
(string-append "RANLIB = " target "-ranlib\n"))))
|
||||
#t)))
|
||||
#:tests? #f))
|
||||
(synopsis "Tools for manipulating Linux Wireless Extensions")
|
||||
(description "Wireless Tools are used to manipulate the now-deprecated
|
||||
|
|
Loading…
Reference in a new issue