Ok, that's genious ! Thank you for explaining it to me, I had missed
that point.
Just thinking aloud : so with spack that means the +external-cblas
option is of no interest.
One can either [assuming depends_on('blas', when='+blas') and
depends_on('gsl', when='+gsl')]
spack install mypackage+blas+gsl ^gsl ^myblas
or
spack install mypackage~blas+gsl ^gsl
with an internal spec:
<< mypackage/package.py : something like:
if self.spec.satisfies('+gsl~blas'):
env.append_flags('LDLIBS', '-lgslcblas')
>>
Cheers,
Olivier Cessenat
Le 19/03/2021 à 17:52, Patrick Alken a écrit :
> This is done at link time, not compile time. You can link your program
> with any cblas library of your choice
>
> On 3/19/21 3:29 AM, Olivier Cessenat wrote:
>> Dear GSL developers,
>>
>> If one of you could modify the configure script so that it becomes
>> easy to select an external cblas as has been done in "spack" for gsl
>> 2.3 to 2.5 it would be very nice.
>>
>> Thanks a lot,
>>
>> Olivier Cessenat
>>
>>
>>