The rpath
of an executable specifies one or more directories wherein to look for shared objects at runtime.
My question is - do shared object files themselves also have statically-compiled rpath
s?
I recently received a runtime error when linking with a shared object:
./example: /opt/swt/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./mylib.so)
This error indicates to me that the actually library itself - mylib.so
, has an statically compiled rpath
.
My understanding was that rpath
only applied to executables, not shared objects. So does rpath
also apply to shared objects?