efraim pushed a commit to branch wip-riscv
in repository guix.
commit b45867522063766d7cd29e518d6cb75f38fbc35b
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Aug 18 12:55:32 2021 +0300
gnu: libtool: Fix test suite on riscv64-linux.
* gnu/packages/autotools.scm (libtool)[arguments]: When building for
riscv64-linux add phase to skip the nopic tests.
---
gnu/packages/autotools.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/gnu/packages/autotools.scm b/gnu/packages/autotools.scm
index 57efc4c..09eeec2 100644
--- a/gnu/packages/autotools.scm
+++ b/gnu/packages/autotools.scm
@@ -488,6 +488,14 @@ Makefile, simplifying the entire process for the
developer.")
#:phases
(modify-phases %standard-phases
+ ,@(if (target-riscv64?)
+ ;; TODO: merge this into the libtool-skip-tests2.patch
+ `((add-after 'unpack 'skip-nopic-tests-on-riscv64
+ (lambda _
+ (substitute* '("tests/testsuite"
+ "tests/demo.at")
+ (("mips") "mips*|riscv")))))
+ '())
(add-before 'check 'pre-check
(lambda* (#:key inputs native-inputs #:allow-other-keys)
;; Run the test suite in parallel, if possible.