gnu: libtool: Allow cross-compilation.
* gnu/packages/autotools.scm (libtool)[arguments]: Use #:phases argument only when building natively.
This commit is contained in:
parent
3871c9f500
commit
1984b43895
|
@ -231,7 +231,9 @@ Standards. Automake requires the use of Autoconf.")
|
||||||
|
|
||||||
(arguments
|
(arguments
|
||||||
`(#:patches (list (assoc-ref %build-inputs "patch/skip-tests"))
|
`(#:patches (list (assoc-ref %build-inputs "patch/skip-tests"))
|
||||||
#:phases (alist-cons-before
|
,@(if (%current-target-system)
|
||||||
|
'() ; no `check' phase when cross-building
|
||||||
|
'(#:phases (alist-cons-before
|
||||||
'check 'pre-check
|
'check 'pre-check
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
;; Run the test suite in parallel, if possible.
|
;; Run the test suite in parallel, if possible.
|
||||||
|
@ -252,7 +254,7 @@ Standards. Automake requires the use of Autoconf.")
|
||||||
(substitute* "tests/testsuite"
|
(substitute* "tests/testsuite"
|
||||||
(("/bin/sh")
|
(("/bin/sh")
|
||||||
(string-append bash "/bin/bash")))))
|
(string-append bash "/bin/bash")))))
|
||||||
%standard-phases)))
|
%standard-phases)))))
|
||||||
(inputs `(("patch/skip-tests"
|
(inputs `(("patch/skip-tests"
|
||||||
,(search-patch "libtool-skip-tests.patch"))))
|
,(search-patch "libtool-skip-tests.patch"))))
|
||||||
(synopsis "Generic shared library support tools")
|
(synopsis "Generic shared library support tools")
|
||||||
|
|
Loading…
Reference in New Issue