diff options
author | amesgen <amesgen@amesgen.de> | 2022-01-27 21:40:59 +0300 |
---|---|---|
committer | amesgen <amesgen@amesgen.de> | 2022-01-27 21:53:00 +0300 |
commit | befc879d5ee812edc8f703de1a008ca0ddecf2b1 (patch) | |
tree | 9c3a3e87e5e967884438bf59ce4a73cfd587a628 | |
parent | f36a906a446261a26cd9d6ccb97ab06cfde816a6 (diff) |
Also consider reexported dylibs
-rw-r--r-- | src/DylibBundler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DylibBundler.cpp b/src/DylibBundler.cpp index 78f5189..95295b8 100644 --- a/src/DylibBundler.cpp +++ b/src/DylibBundler.cpp @@ -261,7 +261,8 @@ void collectDependencies(const std::string& filename, std::vector<std::string>& bool searching = false; for(const auto& line : raw_lines) { - if (line.find("cmd LC_LOAD_DYLIB") != std::string::npos) + const auto &is_prefix = [&line](const char *const p) { return line.find(p) != std::string::npos; }; + if (is_prefix("cmd LC_LOAD_DYLIB") || is_prefix("cmd LC_REEXPORT_DYLIB")) { if (searching) { |