Set rpath for existing binaries and libraries

This commit is contained in:
TheAssassin
2018-06-20 17:47:22 +02:00
parent fd2df11750
commit 3f1a95f891

View File

@@ -670,11 +670,15 @@ namespace linuxdeploy {
for (const auto& executable : listExecutables()) {
if (!d->deployElfDependencies(executable))
return false;
d->setElfRPathOperations[executable] = "$ORIGIN/../lib";
}
for (const auto& sharedLibrary : listSharedLibraries()) {
if (!d->deployElfDependencies(sharedLibrary))
return false;
d->setElfRPathOperations[sharedLibrary] = "$ORIGIN";
}
return true;