I think that CMake is setting RUNPATH
correctly (my understanding is that RUNPATH
has superseded RPATH
). This is a part of what readelf -d
returns for the executable … by now, I am starting to get the feeling that this really isn’t VTK’s fault at all, but I figured that there were plenty of other VTK users on Ubuntu who might know the answer …
[me@laptop build]$readelf -d test
Dynamic section at offset 0x4b50 contains 42 entries:
Tag Type Name/Value
0x0000000000000001 (NEEDED) Shared library: [libvtkInteractionStyle-9.0.so.1]
... stuff ...
0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6]
0x0000000000000001 (NEEDED) Shared library: [libm.so.6]
0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x0000000000000001 (NEEDED) Shared library: [libc.so.6]
0x000000000000001d (RUNPATH) Library runpath: [/home/me/opt/vtk/lib]
... morestuff ...