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

commit fbfe79c468069c1c8f9447cbc3f0f1cef8b69572
Author: Efraim Flashner <[email protected]>
AuthorDate: Tue Aug 17 10:00:38 2021 +0300

    gnu: lapack: Fix building on riscv64-linux.
    
    * gnu/packages/maths.scm (lapack)[inputs]: When building for
    riscv64-linux explicitly add gfortran:lib.
---
 gnu/packages/maths.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 6a12846..34fb073 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -892,6 +892,9 @@ large scale eigenvalue problems.")
     (build-system cmake-build-system)
     (home-page "http://www.netlib.org/lapack/";)
     (inputs `(("fortran" ,gfortran)
+              ,@(if (target-riscv?)
+                  `(("fortran:lib" ,gfortran "lib"))
+                  '())
               ("python" ,python-wrapper)))
     (arguments
      `(#:configure-flags (list

Reply via email to