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
173 stars 69 forks source link

Add soversion #241 #242

Closed flagarde closed 6 months ago

flagarde commented 6 months ago

hi, This is a fix for #241

It changes some filenames from .cmake to .in as this extension is used by CMake people to stress these files need to be configure_filed

davea42 commented 6 months ago

Looks like this is good. Thanks.

davea42 commented 6 months ago

dwarfexample and dwarfgen mentioned config.h.cmake. Fixing those. Now allsimplebuilds work.

davea42 commented 6 months ago

Now a cmake shared build installs:

q3 513: ls -lR
.:
total 12
drwxrwxr-x 2 davea davea 4096 May 21 09:12 bin
drwxrwxr-x 2 davea davea 4096 May 21 09:12 include
drwxrwxr-x 4 davea davea 4096 May 21 09:12 lib

./bin:
total 564
-rwxr-xr-x 1 davea davea 574096 May 21 09:12 dwarfdump

./include:
total 396
-rw-r--r-- 1 davea davea  78252 May  2 08:01 dwarf.h
-rw-r--r-- 1 davea davea 322422 May 10 10:56 libdwarf.h

./lib:
total 852
drwxrwxr-x 3 davea davea   4096 May 21 09:12 cmake
-rw-r--r-- 1 davea davea  13494 Feb 29 08:55 dwarfdump.conf
lrwxrwxrwx 1 davea davea     13 May 21 09:12 libdwarf.so -> libdwarf.so.0
lrwxrwxrwx 1 davea davea     17 May 21 09:12 libdwarf.so.0 -> libdwarf.so.0.9.3
-rw-r--r-- 1 davea davea 844264 May 21 09:12 libdwarf.so.0.9.3
drwxrwxr-x 2 davea davea   4096 May 21 09:12 pkgconfig

./lib/cmake:
total 4
drwxrwxr-x 2 davea davea 4096 May 21 09:12 libdwarf

./lib/cmake/libdwarf:
total 20
-rw-r--r-- 1 davea davea 2112 Feb 29 08:55 Findzstd.cmake
-rw-r--r-- 1 davea davea 1408 May 21 09:12 libdwarfConfig.cmake
-rw-r--r-- 1 davea davea 3791 May 21 09:12 libdwarfConfigVersion.cmake
-rw-r--r-- 1 davea davea 3318 May 21 09:12 libdwarf-targets.cmake
-rw-r--r-- 1 davea davea  808 May 21 09:12 libdwarf-targets-noconfig.cmake

./lib/pkgconfig:
total 4
-rw-r--r-- 1 davea davea 252 May 21 09:12 libdwarf.pc