Shared libraries and debug
I've noticed a couple of things about the new shared library build, and also the .debug files, and was wondering what the fix should be.
(I think some of this has been mentioned in comments to merge requests, but I couldn't find an Issue)
Currently (devel), the binaries are installed into bin, but they have RPATH pointing to build/lib to find the shared libraries.
This conflicts with how the .debug files are found, because they are installed to lib. gdb can't find them, because it's loading from build/lib (a temporary work around for this being to remove them from build/lib).
So, the RPATH needs fixing on install, but there are two options:
- Remove RPATH setting in installed version
- Hard-code the install directory in the binary
The first means the instructions would need updating to suggest adding $YARR/lib to LD_LIBRARY_PATH. The second means that the binaries are out of date if they're moved (though LD_LIBRARY_PATH would still work).