efraim pushed a commit to branch core-updates-frozen
in repository guix.

commit 1da7f9089f727bb3dce73e4d2acfc2803b82e090
Author: Efraim Flashner <[email protected]>
AuthorDate: Thu Dec 9 23:14:09 2021 +0200

    gnu: Add gsl-static.
    
    * gnu/packages/maths.scm (gsl-static): New variable.
---
 gnu/packages/maths.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 532d424..58bde73 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -581,6 +581,15 @@ differential equations, linear algebra, Fast Fourier 
Transforms and random
 numbers.")
     (license license:gpl3+)))
 
+;; TODO: Merge back into the gsl package as a separate output.
+(define-public gsl-static
+  (package/inherit gsl
+    (name "gsl-static")
+    (arguments
+     `(,@(package-arguments gsl)
+        #:configure-flags (list "--disable-shared")
+        #:make-flags (list "CFLAGS=-fPIC")))))
+
 (define-public sleef
   (package
     (name "sleef")

Reply via email to