gnu: gawk: Allow cross-compilation.
* gnu/packages/gawk.scm (gawk)[arguments]: Annihilate the `check-for-shared-lib-support' target when cross-compiling.
This commit is contained in:
parent
f7c3429073
commit
1e4310f1f2
1 changed files with 10 additions and 4 deletions
|
@ -38,9 +38,6 @@
|
||||||
(arguments
|
(arguments
|
||||||
`(#:parallel-tests? #f ; test suite fails in parallel
|
`(#:parallel-tests? #f ; test suite fails in parallel
|
||||||
|
|
||||||
;; Work around test failure on Cygwin.
|
|
||||||
#:tests? ,(not (string=? (%current-system) "i686-cygwin"))
|
|
||||||
|
|
||||||
#:phases (alist-cons-before
|
#:phases (alist-cons-before
|
||||||
'configure 'set-shell-file-name
|
'configure 'set-shell-file-name
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
@ -48,7 +45,16 @@
|
||||||
(let ((bash (assoc-ref inputs "bash")))
|
(let ((bash (assoc-ref inputs "bash")))
|
||||||
(substitute* "io.c"
|
(substitute* "io.c"
|
||||||
(("/bin/sh")
|
(("/bin/sh")
|
||||||
(string-append bash "/bin/bash")))))
|
(string-append bash "/bin/bash")))
|
||||||
|
|
||||||
|
;; When cross-compiling, remove dependencies on the
|
||||||
|
;; `check-for-shared-lib-support' target, which tries to
|
||||||
|
;; run the cross-built `gawk'.
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
'((substitute* "extension/Makefile.in"
|
||||||
|
(("^.*: check-for-shared-lib-support" match)
|
||||||
|
(string-append "### " match))))
|
||||||
|
'())))
|
||||||
%standard-phases)))
|
%standard-phases)))
|
||||||
(inputs `(("libsigsegv" ,libsigsegv)
|
(inputs `(("libsigsegv" ,libsigsegv)
|
||||||
|
|
||||||
|
|
Reference in a new issue