[Pkg-cmake-team] Bug#912443: cmake: Generates wrong link flags on hurd-i386

Brad King brad.king at kitware.com
Wed Oct 31 17:39:35 GMT 2018


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



More information about the Pkg-cmake-team mailing list