collect_libs: one copy per real library file
This commit is contained in:
1 parent
633a87577f
commit
d7895e1690
1 file changed
+2
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user