On 29/11/12 16:51, Ian Stakenvicius wrote:
> On 29/11/12 09:56 AM, justin wrote:
> 
>> Standard autotools based packages always use
> 
>> --with-blas=
> 
>> so it is pretty simple for us to make it to
> 
>> --with-blas="$(pkg-config --libs blas)"
> 
>> same thing goes for cmake and
> 
>> -DBLAS_LIBRARIES="$(pkg-config --libs blas)"
> 
>> This game has been played since ever, because blas/lapack are
>> bundled in more then 80% of the packages using it. So we are used
>> to patch them to use system libs. So why not making our lives
>> easier by having a pkg-config option?
> 
>> justin
> 
> 
> ..ok remind me again what the .pc files provide you?  this is so that
> you can have slotted blas providers and various packages can choose
> their preferred one instead of having to use the eselected one?  or...
> 
> 
> 
> 
> 

Not exactly.
The user can choose for each package newly by eselecting the wanted
implementation. This is the user side. From the pm side we ensure that
the choice is really respected by linking against package specific names
[1] instead of the generic ones e.g. libblas.so. And this can be
achieved in an easy way by using pkg-config.

justin

1)
 # eselect blas set atlas-threads
 # pkg-config --libs blas
-lptf77blas -lm -latlas -lpthread

# eselect blas set reference
# pkg-config --libs blas
-lrefblas


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to