davea42 / libdwarf-code

Contains source for libdwarf, a library for reading DWARF2 and later DWARF. Contains source to create dwarfdump, a program which prints DWARF2 and later DWARF in readable format. Has a very limited DWARF writer set of functions in libdwarfp (producer library). Builds using GNU configure, meson, or cmake.
Other
163 stars 66 forks source link

CMake doesn't version shared library outputs #241

Closed kkraus14 closed 3 months ago

kkraus14 commented 3 months ago

As compared to the autotools or meson based build.

I.E. CMake only produces a libdwarf.so and it's SONAME is set to libdwarf.so, whereas autotools / meson produce a libdwarf.so, libdwarf.so.0, and libdwarf.so.0.9.2 and the SONAME is set to libdwarf.so.0.

davea42 commented 3 months ago

I've merged flagarde's pull (and found two places still with config.h.cmake and fixed them). Now the cmake shared library names are versioned as is the soname. Changes pushed to github.
Thanks to kkraus14 for noticing and flagarde for fixing this long-standing bug.