inspect-library: print the real SONAME of the given library
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