On 15/07/11 21:59, Mark Stodola wrote:
If I'm not mistaken, you should not need to manually link libraries.
ldconfig should be taking care of this for you, so all you would need is
the %post entry to run ldconfig with the proper flags after
install/upgrade/removal. Assuming it ends up in a standard path,
otherwise the ld.so.conf entries are needed as well.
-Mark
Correct. Running ldconfig in %post will create the symlinks from the
SONAME, assuming they are present in the lib. But you must still ensure
the symlinks are owned by the package otherwise they get left behind
when the package is removed. A wildcard entry in %files might be all
that's needed (e.g, %{_libdir}/lib_andrew.so*)
You can query the SONAME with objdump:
objdump -p /usr/lib/lib_andrew.so.1.2.3 | grep SONAME