add "*.so.*" case to util.find_lib

The actual libc name in musl is: libc.musl-x86_64.so.1 this case should handle it.
This commit is contained in:
Benoit Chesneau 2019-11-21 11:53:13 +01:00 committed by GitHub
parent 499dcd4021
commit e150ca4ff8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -659,7 +659,7 @@ def _findWalk_ldpath(name):
if _is_elf(f):
return os.path.basename(f)
prefix = os.path.join(d, 'lib'+name)
for suffix in ['so', 'so.*']:
for suffix in ['so', 'so.*', '*.so.*']:
for f in glob('{0}.{1}'.format(prefix, suffix)):
if _is_elf(f):
return os.path.basename(f)