diff options
author | SCG82 <scg082+github@gmail.com> | 2022-01-28 10:38:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-28 10:38:34 +0300 |
commit | 9b3779e040c1436cedb0c75e1702105d94bc8a10 (patch) | |
tree | 7f1c6040b7147088b47420bf49f2bd10315366b2 | |
parent | 92b2fd8ad2fc0a0bcd13f2fefffcc9706ff61dda (diff) | |
parent | befc879d5ee812edc8f703de1a008ca0ddecf2b1 (diff) |
Merge pull request #76 from amesgen/consider-reexported-dylibs
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) { |