From 22abe9b4a77aa6c7d793863705e885d5d0030715 Mon Sep 17 00:00:00 2001 From: rgaudin Date: Thu, 15 May 2014 16:55:41 +0000 Subject: [PATCH] Fixed compilation on OSX C++ Dependencies compiles with clang++ and libstdc++ Components compiles and behaves with clang++ and libstdc++ standalone binaries not working yet. --- src/macosx/cleanup_rpath.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/macosx/cleanup_rpath.py b/src/macosx/cleanup_rpath.py index 9c8936f..30b80f9 100755 --- a/src/macosx/cleanup_rpath.py +++ b/src/macosx/cleanup_rpath.py @@ -89,8 +89,10 @@ for line in otool_out.split('\n'): if match: print("match: %s" % match.groups()[0]) if 'libstdc++' in line or 'libgcc' in line: - newpath = u'/usr/lib/lib%s%s.dylib' % (match.groups()[0], match.groups()[1]) - newpath = u'lib%s%s.dylib' % (match.groups()[0], match.groups()[1]) + # newpath = u'/usr/lib/lib%s%s.dylib' % (match.groups()[0], match.groups()[1]) + # newpath = u'lib%s%s.dylib' % (match.groups()[0], match.groups()[1]) + # newpath = u'@executable_path/lib%s%s.dylib' % (match.groups()[0], match.groups()[1]) + continue elif is_component: # newpath = u'@executable_path/../Frameworks/lib%s.dylib' % match.groups()[0] newpath = u'@executable_path/lib%s.dylib' % match.groups()[0]