On 26/09/12 17:52, Kacper Kowalik wrote:
> On 09/26/2012 05:09 AM, Andrey G. Grozin wrote:
>> Hello *,
>>
>> I don't understand how the blas stuff (from the science overlay) works.
>> I have blas-reference and atlas (and also eigen) installed, atlas
>> eselected. But /usr/lib/libblas.so is a file (not symlink) owned by
>> blas-reference. So, a program demanding -lblas will be linked to this
>> library from blas-reference, right? And what eselect blas then is doing?
>>
>> This question is related to the new gsl-shell package. Its Makefile just
>> says -lblas. It works on my computer (linking to /usr/lib/libblas.so
>> from blas-reference, I suppose). But what should I write as the
>> dependency? virtual/blas? (docs say that atlas should be OK).
> Change -lblas into $(pkg-config --libs blas)
> Cheers,
> Kacper
> 
Just to add to Kacper's answer. eselect changes the link to the blas
pkg-config file. Any ebuild using blas/cblas/lapack should be configured
using the values from pkg-config.
If Sebastian had pushed it a little bit more we could have had
/usr/lib(64)/libblas-reference.so and no libblas whatsoever. Which may
be an idea just to catch packages that just do -lblas.

Francois

Reply via email to