openstreetmap/OSM-binary

CMake build doesn't configure SOVERSION for library

sebastic opened this issue · 2 comments

When using CMake instead of the Makefile for the Debian package build, the library does not have a SOVERSION configured and hence only the .so file is installed:

# ls -l /usr/lib/libosmpbf.so
-rw-r--r-- 1 root root 2542504 Jan  3 12:25 /usr/lib/libosmpbf.so
# objdump -x /usr/lib/libosmpbf.so | grep SONAME
  SONAME               libosmpbf.so

When using the Makefile build the library has a proper SOVERSION and symlinks:

$ ls -l /usr/lib/x86_64-linux-gnu/libosmpbf.so*
lrwxrwxrwx 1 root root     18 Oct 27 12:26 /usr/lib/x86_64-linux-gnu/libosmpbf.so -> libosmpbf.so.1.3.3
lrwxrwxrwx 1 root root     18 Oct 27 12:26 /usr/lib/x86_64-linux-gnu/libosmpbf.so.1 -> libosmpbf.so.1.3.3
-rw-r--r-- 1 root root 228112 Oct 27 12:26 /usr/lib/x86_64-linux-gnu/libosmpbf.so.1.3.3
$ objdump -x /usr/lib/x86_64-linux-gnu/libosmpbf.so.1 | grep SONAME
  SONAME               libosmpbf.so.1

There's already a pending PR: #53

joto commented

This has now been fixed.