diff mbox

gnu: Add lapack-with-lapacke.

Message ID 20160708154008.24871-2-ricardo.wurmus@mdc-berlin.de
State New
Headers show

Commit Message

Ricardo Wurmus July 8, 2016, 3:40 p.m. UTC
* gnu/packages/maths.scm (lapack-with-lapacke): New variable.
---
 gnu/packages/maths.scm | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 68fb272..4abbb2f 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -350,6 +350,14 @@  problems in numerical linear algebra.")
     (license (license:non-copyleft "file://LICENSE"
                                 "See LICENSE in the distribution."))))
 
+(define-public lapack-with-lapacke
+  (package (inherit lapack)
+    (name "lapack-with-lapacke")
+    (arguments
+     (substitute-keyword-arguments (package-arguments lapack)
+       ((#:configure-flags flags)
+        `(cons "-DLAPACKE=ON" ,flags))))))
+
 (define-public scalapack
   (package
     (name "scalapack")