From 1c850ff5592304a91f16c5e3a062bbc5fc6c3a19 Mon Sep 17 00:00:00 2001 From: Tsukasa OMOTO Date: Tue, 15 Jul 2014 17:37:39 +0900 Subject: 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. --- TOOLS/dylib-unhell.py | 8 ++++---- 1 file 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): -- cgit v1.2.3