mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-16 21:51:43 -05:00
Calculate relative path from absolute paths
Seems to work without any kind of workarounds.
This commit is contained in:
@@ -243,8 +243,9 @@ namespace linuxdeploy {
|
||||
} else {
|
||||
rpathDestination = destination.parent_path().string();
|
||||
}
|
||||
// FIXME: adding / to "fake" root to calculate proper relative path
|
||||
rpath = "$ORIGIN/" + bf::relative("/usr/lib", "/" + rpathDestination).string() + ":$ORIGIN";
|
||||
|
||||
auto relPath = bf::relative(bf::absolute(appDirPath) / "usr/lib", bf::absolute(rpathDestination));
|
||||
rpath = "$ORIGIN/" + relPath.string() + ":$ORIGIN";
|
||||
}
|
||||
|
||||
setElfRPathOperations[destinationPath / path.filename()] = rpath;
|
||||
|
||||
Reference in New Issue
Block a user