Hey, I’m building something against ROOT (and DD4hep).
I want to avoid having to set LD_LIBRARY_PATH, so I’m setting RPATH/RUNPATH on my executables/shared libraries. This works fine if my library directly links against a ROOT lib, as that is found through RUNPATH. However, libraries that the directly linked ROOT libs link against are not found, because none of the ROOT shared libraries have their RUNPATHs set.
As an example: I link against libGeom.so
, that is found in /opt/root/6.24.00/lib/libGeom.so
. However libGeom.so
depends on libRIO.so
and libCore.so
, which are not found, because the linker wants to use libGeom.so
's RUNPATH, which is unset.
Is this something that can be circumvented/improved?
ROOT Version: 6.24.00
Platform: Ubuntu 20.04
Compiler: GCC 9.3