On 24 February 2015 at 10:25, Jerry James <loganjerry(a)gmail.com> wrote:
On Mon, Feb 23, 2015 at 10:46 PM, Orcan Ogetbil
<oget.fedora(a)gmail.com> wrote:
> Can you elaborate on this? gsl has plenty of other routines that have
> nothing to do with linear algebra. Is there a technical reason why you
> have to link to a BLAS if the code using gsl does not actually need a
> BLAS?
The blas symbols are not weak, so they are undefined when linking an
application without a BLAS library. See the output of "ldd -r
/usr/lib64/libgsl.so.0.17.0" on Rawhide. Those symbols should be weak
instead. That way, if an application doesn't use them, they don't
prevent linking without a BLAS library.
Thank you for the explanation. I see that there are symbols named
gsl_blas_* in libgsl.so. I guess they are an interface layer to some
blas implementation. I wonder why they were not factored out to some
other dynamic object, or made weak like you said.
Best,
Orcan