fix mistake in algorithm: collect rpaths for file only when finding an rpath dependency

This commit is contained in:
SCG82 2020-01-11 04:01:31 -08:00
parent 7f41661132
commit d14215f1db
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ void collectDependenciesForFile(const std::string& dependent_file)
for (const auto& line : lines) {
if (!Settings::isPrefixBundled(line))
continue; // skip system/ignored prefixes
if (isRpath(line))
collectRpathsForFilename(dependent_file);
addDependency(line, dependent_file);
}
deps_collected[dependent_file] = true;
@ -123,6 +125,8 @@ void collectSubDependencies()
for (const auto& line : lines) {
if (!Settings::isPrefixBundled(line))
continue; // skip system/ignored prefixes
if (isRpath(line))
collectRpathsForFilename(searchFilenameInRpaths(line));
addDependency(line, original_path);
}
}