bug-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-gsl] allow user to choose cblas via pkg-config


From: Peter Johansson
Subject: [Bug-gsl] allow user to choose cblas via pkg-config
Date: Thu, 27 Jan 2011 21:43:50 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

Hello,

Attached please find a patch for file `gsl.pc'. Currently when using gsl-config one can choose cblas lib for example via

export GSL_CBLAS_LIB=-lfoo; gsl-config --libs

The attached patch would allow something similar for pkg-config users. By calling

pkg-config --define-variable=GSL_CBLAS_LIB=-lfoo --libs gsl

the user tells pkg-config that (s)he wanna use cblas lib 'foo' and pkg-config will output

-L/usr/local/lib -lgsl -lfoo -lm


I've also attached a test, pkgconfig.test, that can be run from the test directory and which might be useful to add as a part of 'make check' (TESTS = pkgconfig.test).


Cheers,
--
Peter Johansson
yat maintainer, http://dev.thep.lu.se/yat/

Attachment: gsl.pc.in.patch
Description: Text document

Attachment: pkgconfig.test
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]