On Wed, 31 Oct 2018 19:05:55 +0300 Dmitry Shachnev wrote: > Such a flag is a problem when the referenced .so file is actually a symlink. > GCC does not resolve it and generates a dependency literally on libsndio.so.
Linking a library by absolute path is okay (and preferred) if the library has a proper SONAME. What is the output of $ readelf -d /usr/lib/i386-gnu/libsndio.so | grep SONAME ? On x86_64 libsndio.so has a proper soname: 0x000000000000000e (SONAME) Library soname: [libsndio.so.7.0] -Brad