summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
authorTsukasa OMOTO <henry0312@gmail.com>2014-07-15 17:37:39 +0900
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-07-16 08:36:34 +0200
commit1c850ff5592304a91f16c5e3a062bbc5fc6c3a19 (patch)
treeab80a01c0f6e4e701b719ffe29a7937c6c321ba3 /TOOLS
parent135ba132a84a4fdc48b186c75f724c03cc310efb (diff)
downloadmpv-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')
-rwxr-xr-xTOOLS/dylib-unhell.py8
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):