Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/auriamg/macdylibbundler.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorauriamg <auria.mg@gmail.com>2019-12-24 04:30:35 +0300
committerGitHub <noreply@github.com>2019-12-24 04:30:35 +0300
commitcd6581d3ba3d1ea95b972aea6928533c2d6ece4c (patch)
tree6090932ae8ff79a114db96f34e3db386c634ecfe
parent9b646f4bb324ac7c4e4571c6709d63cc0c982df3 (diff)
parente228020b16c085256f603d2b09ea50262e5842bd (diff)
Merge pull request #45 from SCG82/handle-loader-path
Handle @loader_path
-rw-r--r--src/DylibBundler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp
index c3e041b..0198b6c 100644
--- a/src/DylibBundler.cpp
+++ b/src/DylibBundler.cpp
@@ -53,7 +53,7 @@ void changeLibPathsOnFile(std::string file_to_fix)
bool isRpath(const std::string& path)
{
- return path.find("@rpath") == 0;
+ return path.find("@rpath") == 0 || path.find("@loader_path") == 0;
}
void collectRpaths(const std::string& filename)
@@ -114,7 +114,7 @@ std::string searchFilenameInRpaths(const std::string& rpath_file)
{
char buffer[PATH_MAX];
std::string fullpath;
- std::string suffix = rpath_file.substr(7, rpath_file.size()-6);
+ std::string suffix = rpath_file.substr(rpath_file.rfind("/")+1);
for (std::set<std::string>::iterator it = rpaths.begin(); it != rpaths.end(); ++it)
{