about summary refs log tree commit diff
path: root/pkgs/development/lisp-modules-new-obsolete/patches/magicl-dont-build-fortran-twice.patch
blob: f63b6949b1fd5c47e2d929a73449387f882e0657 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/magicl.asd
+++ b/magicl.asd
@@ -143,6 +143,7 @@
            (shared-object (make-pathname :type #+darwin "dylib" #-darwin "so"
                                          :name "libexpokit"
                                          :defaults fortran-file)))
+      (unless (probe-file (nn shared-object))
       (uiop:run-program
        (list "gfortran" "-fPIC" "-std=legacy"
              "-c"
@@ -155,7 +156,7 @@
              (nn object-file)
              #+darwin "-lblas"
              #+darwin "-llapack"))
-      (delete-file object-file))))
+      (delete-file object-file)))))
 
 
 (asdf:defsystem #:magicl/ext-expokit

Diff finished.  Mon Oct 10 22:03:54 2022