diff options
author | Tsukasa OMOTO <henry0312@gmail.com> | 2014-07-15 17:37:39 +0900 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-07-16 08:36:34 +0200 |
commit | 1c850ff5592304a91f16c5e3a062bbc5fc6c3a19 (patch) | |
tree | ab80a01c0f6e4e701b719ffe29a7937c6c321ba3 /TOOLS/dylib-unhell.py | |
parent | 135ba132a84a4fdc48b186c75f724c03cc310efb (diff) | |
download | mpv-1c850ff5592304a91f16c5e3a062bbc5fc6c3a19.tar.bz2 mpv-1c850ff5592304a91f16c5e3a062bbc5fc6c3a19.tar.xz |
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.
Diffstat (limited to 'TOOLS/dylib-unhell.py')
-rwxr-xr-x | TOOLS/dylib-unhell.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TOOLS/dylib-unhell.py b/TOOLS/dylib-unhell.py index 2f3a6c611e..43fd11107b 100755 --- a/TOOLS/dylib-unhell.py +++ b/TOOLS/dylib-unhell.py @@ -15,10 +15,10 @@ def is_user_lib(objfile, libname): return not sys_re.match(libname) and \ not usr_re.match(libname) and \ not exe_re.match(libname) and \ - not "libobjc" in libname and \ - not "libSystem" in libname and \ - not "libc" in libname and \ - not "libgcc" in libname and \ + not "libobjc." in libname and \ + not "libSystem." in libname and \ + not "libc." in libname and \ + not "libgcc." in libname and \ not os.path.basename(objfile) in libname def otool(objfile): |