Open emfomy opened 5 years ago
Compile using -Wl,-rpath='$ORIGIN' for all shared libraries. Therefore, all libraries will find shared libraries in the same folder.
-Wl,-rpath='$ORIGIN'
Note that the executables should compile using -Wl,-rpath='$ORIGIN:$ORIGIN/lib:$ORIGIN/../lib'.
-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'
.