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:
authorSCG82 <scg082+github@gmail.com>2021-11-11 18:21:44 +0300
committerSCG82 <scg082+github@gmail.com>2021-11-11 18:21:44 +0300
commit1b12659289d1a904043833f6296bd3f2a1a79807 (patch)
tree1e92fae707f9617b33f2fd21e78ae0be6b3725e1
parent6a34c9fe68a8c991cd00e937e8e1c0e83ff837cf (diff)
Fix rpath search logic
-rw-r--r--src/DylibBundler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp
index 6623e6a..8933fd4 100644
--- a/src/DylibBundler.cpp
+++ b/src/DylibBundler.cpp
@@ -114,7 +114,7 @@ std::string searchFilenameInRpaths(const std::string& rpath_file, const std::str
{
char buffer[PATH_MAX];
std::string fullpath;
- std::string suffix = rpath_file.substr(rpath_file.rfind('/')+1);
+ std::string suffix = std::regex_replace(rpath_file, std::regex("^@[a-z_]+path/"), "");
const auto check_path = [&](std::string path)
{