Fix path calculation

This commit is contained in:
TheAssassin
2018-09-03 23:32:07 +02:00
parent 906c948304
commit 3375de8fc4

View File

@@ -420,7 +420,7 @@ namespace linuxdeploy {
rpathDestination = destination.parent_path().string();
}
auto relPath = bf::relative(bf::absolute(appDirPath) / ("usr/lib" + libSuffix), bf::absolute(rpathDestination));
auto relPath = bf::relative(bf::absolute(appDirPath) / "usr" / getLibraryDirName(path)), bf::absolute(rpathDestination));
rpath = "$ORIGIN/" + relPath.string();
}