Compile using `-Wl,-rpath='$ORIGIN'` for all shared libraries. Therefore, all libraries will find shared libraries in the same folder. Note that the executables should compile using `-Wl,-rpath='$ORIGIN:$ORIGIN/lib:$ORIGIN/../lib'`.
Compile using
-Wl,-rpath='$ORIGIN'for all shared libraries. Therefore, all libraries will find shared libraries in the same folder.Note that the executables should compile using
-Wl,-rpath='$ORIGIN:$ORIGIN/lib:$ORIGIN/../lib'.