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:
Tsukasa OMOTO 2014-07-15 17:37:39 +09:00 committed by Stefano Pigozzi
parent 135ba132a8
commit 1c850ff559
1 changed files with 4 additions and 4 deletions

View File

@ -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):