From befc879d5ee812edc8f703de1a008ca0ddecf2b1 Mon Sep 17 00:00:00 2001 From: amesgen Date: Thu, 27 Jan 2022 19:40:59 +0100 Subject: Also consider reexported dylibs --- src/DylibBundler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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& 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) { -- cgit v1.2.3