collect_libs: one copy per real library file

This commit is contained in:
Niko1221 committed 2026-10-15 15:13:43 +02:00
1 parent 633a87577f
commit d7895e1690
1 file changed
+2
+2
View File
@@ -114,6 +114,8 @@ def main(argv=None) -> int:
if hit.name in copied or not hit.is_file():
continue
real = hit.resolve()
if str(real) in copied.values(): # libX.so -> libX.so.1 -> libX.so.1.2.3: one file, one name (the soname)
continue
shutil.copy2(real, a.out / hit.name)
copied[hit.name] = str(real)
for name, path in dependencies(a.out / hit.name, a.search)[0].items():