Hi,

On 04/04/17 12:44, Dirk Eddelbuettel wrote:
> On 4 April 2017 at 11:54, James Cowgill wrote:
> | On 04/04/17 11:14, Dirk Eddelbuettel wrote:
> | > On 4 April 2017 at 10:45, James Cowgill wrote:
> | There are some lesser upsides going forward though:
> | - the package would become more policy compliant
> | - no need to ship libgslcblas.so to users who never use it
> 
> That's the thing: I don't think I have seen a use case of GSL that did _not_
> involve libgslcblas.  They are welded together at the hip (per gsl-config).
> 
>     edd@max:~/git/rcppquantuccia(master)$ gsl-config --libs
>     -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm
>     edd@max:~/git/rcppquantuccia(master)$ 
> 
> One can/could override, nobody does AFAICT.

Ah sorry my script must have been wrong. I did another scan.

# Number of ELFs in packages depending on libgsl2
$ wc -l elfs
2315 elfs

# Number of ELFs linking against libgsl.so.19
$ for i in $(cat elfs); do readelf --dynamic $i | grep -q libgsl.so.19 && echo 
$i; done | wc -l
704

# Number of ELFs linking against libgslcblas.so.0
$ for i in $(cat elfs); do readelf --dynamic $i | grep -q libgslcblas.so.0 && 
echo $i; done | wc -l
681

I guess -Wl,as-needed accounts for most of the difference.

James

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to