inspect-library: print the real SONAME of the given library
Compare changes
+ 53
− 0
@@ -109,6 +109,41 @@ usage (int code)
@@ -227,6 +262,24 @@ main (int argc,
This information colud be used to correctly handle libraries like libldap that sometimes is just an alias for libldap_r.
This is the output on Arch:
$ ./x86_64-linux-gnu-inspect-library libldap-2.4.so.2
{
"libldap-2.4.so.2": {
"SONAME": "libldap-2.4.so.2",
"path": "/usr/lib/libldap-2.4.so.2",
And this is on Debian:
$ ./x86_64-linux-gnu-inspect-library libldap-2.4.so.2
{
"libldap-2.4.so.2": {
"SONAME": "libldap_r-2.4.so.2",
"path": "/lib/x86_64-linux-gnu/libldap-2.4.so.2",
/cc @smcv