mirror of
https://github.com/mpv-player/mpv
synced 2024-08-04 14:59:58 +02:00
osxbundle: fix detection of user libraries
Previous code would detect for example `libcaca.0.dylib` as a system library, because it matched the `libc` condition.
This commit is contained in:
parent
135ba132a8
commit
1c850ff559
@ -15,10 +15,10 @@ def is_user_lib(objfile, libname):
|
|||||||
return not sys_re.match(libname) and \
|
return not sys_re.match(libname) and \
|
||||||
not usr_re.match(libname) and \
|
not usr_re.match(libname) and \
|
||||||
not exe_re.match(libname) and \
|
not exe_re.match(libname) and \
|
||||||
not "libobjc" in libname and \
|
not "libobjc." in libname and \
|
||||||
not "libSystem" in libname and \
|
not "libSystem." in libname and \
|
||||||
not "libc" in libname and \
|
not "libc." in libname and \
|
||||||
not "libgcc" in libname and \
|
not "libgcc." in libname and \
|
||||||
not os.path.basename(objfile) in libname
|
not os.path.basename(objfile) in libname
|
||||||
|
|
||||||
def otool(objfile):
|
def otool(objfile):
|
||||||
|
Loading…
Reference in New Issue
Block a user