I have an linux application, which on the linker line links against: libpython2.6.so
This ultimately resolves to libpython.2.6.so.1.0
/usr/lib/libpython2.6.so -> libpython2.6.so.1
/usr/lib/libpython2.6.so.1 -> libpython2.6.so.1.0
Which has SONAME embedded in it so that I am stuck with it linking against the fully versioned name.
g++ foo.cc /usr/lib/libpython2.6.so
ldd ./a.out | grep python
libpython2.6.so.1.0 => /usr/lib/libpython2.6.so.1.0 (0x00007fd36f7ab000)
This means that my application will ultimately break if there is ever a libpython2.6.so.1.1. Is there anyway to force my application to use the generic name libpython2.6, instead of libpython2.6.so.1.0?
I use such a small set of the python API, that I think I should be safe linking against a more generic version name of the library.