efraim pushed a commit to branch wip-riscv
in repository guix.

commit 03dbfc3aa024c1f7e17d0a7aa1519bcdf7f1983a
Author: Efraim Flashner <[email protected]>
AuthorDate: Wed Aug 4 09:46:26 2021 +0300

    gnu: openblas: Fix building on riscv64-linux.
    
    * gnu/packages/maths.scm (openblas)[arguments]: Adjust make-flags on
    riscv64-linux to target the correct architecture when building for
    riscv64-linux.
---
 gnu/packages/maths.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index dc4d7f6..cae9986 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -4298,6 +4298,8 @@ parts of it.")
                   ;; Failed to detect CPU.
                   ((string-prefix? "armhf" system)
                    '("TARGET=ARMV7"))
+                  ((string-prefix? "riscv64" system)
+                   '("TARGET=RISCV64_GENERIC"))
                   (else '()))))
        ;; no configure script
        #:phases

Reply via email to