You are not logged in.

#1 2011-03-22 15:03:25

GogglesGuy
Member
From: Rocket City
Registered: 2005-03-29
Posts: 610
Website

Shared Libraries installation

I've been reading lately on how to distribute shared libraries properly. Looking at /usr/lib, it seems there are 2 common ways of installing a shared library:

1)
/usr/lib/libfoobar.so -> libfoobar.so.1.0.0
/usr/lib/libfoobar.so.1 -> libfoobar.so.1.0.0
/usr/lib/libfoobar.so.1.0.0

2)
/usr/lib/libfoobar.so -> libfoobar.so.1
/usr/lib/libfoobar.so.1 -> libfoobar.so.1.0.0
/usr/lib/libfoobar.so.1.0.0


The 'soname' (aka libfoobar.so.1) is generated by ldconfig, so should I link the 'linkername' (aka libfoobar.so) directly to the library or to the 'soname'?
Which is the preferred method? Are there any advantages using one or the other?

Offline

Board footer

Powered by FluxBB