Try to link against libxxx which is here:
❯ ls -al ~/.local/lib/
total 56292
drwxr-xr-x 2 muse user 4096 Jun 23 23:57 .
drwx------ 11 muse user 4096 Jun 23 23:02 ..
lrwxrwxrwx 1 muse user 40 Jun 23 23:51 libxxx.so -> /home/muse/.local/lib/libxxx.so.0.0.1
-rwxr-xr-x 1 muse user 57622768 Jun 23 23:02 libxxx.so.0.0.1
if I try to open in via shortname (xxx), getting an error:
❯ ld -L~/.local/lib/ -lxxx --verbose | grep -i '~/.local/lib//libxxx.so'
ld: cannot find -lxxx
attempt to open ~/.local/lib//libxxx.so failed
But I can directly access it via full path:
❯ ld ~/.local/lib//libxxx.so
ld: warning: libprotobuf.so.23.1.0, needed by /home/muse/.local/lib//libxxx.so, not found (try using -rpath or -rpath-link)
....