We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 188af43 commit 02d6697Copy full SHA for 02d6697
src/patchelf.cc
@@ -1791,6 +1791,7 @@ void ElfFile<ElfFileParamNames>::shrinkWrap()
1791
1792
std::string soname = matches.str(1);
1793
std::string location = matches.str(2);
1794
+ debug("Found %s => %s\n", soname.c_str(), location.c_str());
1795
1796
// if the ELF file has this soname, then merely replace it
1797
if (std::find(needed.begin(), needed.end(), soname) != needed.end()) {
@@ -1799,8 +1800,10 @@ void ElfFile<ElfFileParamNames>::shrinkWrap()
1799
1800
addNeededSet.insert(location);
1801
}
1802
- addNeeded(addNeededSet);
1803
+
1804
+ //TODO: The order matters here. Why?
1805
replaceNeeded(replaceNeededMap);
1806
+ addNeeded(addNeededSet);
1807
1808
1809
template<ElfFileParams>
0 commit comments