tpapp/lla — Issue #8: #'default-libraries on Linux does not catch the obvious: libblas.so and liblapack.so
Author: orivej
Created: 2012-03-02 01:39:33+00:00
State: open

Is this intentional that default-libraries mention only ATLAS library versions? For on Gentoo I already had old BLAS and LAPACK from netlib.org and they seem to work with your package, but they have dissimilar version numbers and, as any of the available implementations would have been upon installation on Gentoo, they are just symlinked with eselect mechanism to `/usr/lib/libblas.so` and `/usr/lib/liblapack.so`.

This proposed change is supposed to work as good:

```lisp
(define-foreign-library libblas
(:linux (:or "libblas.so.3gf" "libblas.so"))
(t (:default "libblas")))

(define-foreign-library liblapack
(:linux (:or "liblapack.so.3gf" "liblapack.so"))
(t (:default "libblas")))

(defun default-libraries ()
'(libblas liblapack))
```
(`:default` means "add appropriate suffixes according to the platform")
(Also, `:cffi-pinning #+sbcl t #-sbcl t` a few lines later looks suspicious.)