3
0
Fork 0

updated to handle libstdc++ and libgcc_s

small_fixes
rgaudin 12 years ago
parent 22886e20d2
commit a18a16e9d3

@ -72,8 +72,6 @@ otool_out, otool_err = otool.communicate()
for line in otool_out.split('\n'):
if ('executable_path' in line
or 'libSystem' in line
or 'libstdc++' in line
or 'libgcc' in line
or ':' in line
or not len(line)
or 'aria2c' in basename):
@ -87,10 +85,12 @@ for line in otool_out.split('\n'):
continue
# is it a library link?
match = re.match(r'lib([a-z\_\-\d]+)([\.?\d]*)\.dylib', _basename)
match = re.match(r'lib([a-z\_\-\d\+]+)([\.?\d]*)\.dylib', _basename)
if match:
print("match: %s" % match.groups()[0])
if is_component:
if 'libstdc++' in line or 'libgcc' in line:
newpath = u'/usr/lib/lib%s%s.dylib' % (match.groups()[0], match.groups()[1])
elif is_component:
# newpath = u'@executable_path/../Frameworks/lib%s.dylib' % match.groups()[0]
newpath = u'@executable_path/lib%s.dylib' % match.groups()[0]
elif is_binary:

Loading…
Cancel
Save