You are not logged in.
Pages: 1
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
Pages: 1