changeset 6350:d1f3243f97bf

Fix darwin libgcc rewire
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Sat, 21 Feb 2015 01:24:15 +0900
parents 71061393f352
children 918354a364a5
files gub/darwin.py
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/darwin.py	Fri Feb 20 21:55:26 2015 +0900
+++ b/gub/darwin.py	Sat Feb 21 01:24:15 2015 +0900
@@ -67,7 +67,11 @@
                 elif self.expand ('%(targetdir)s') in f:
                     must_skip = [s for s in self.skip if s in f]
                     if not must_skip:
-                        raise Exception ('found targetdir in linkage[%(name)s]: %(f)s' % locals ())
+                        if 'libgcc_s.1.dylib' in f:
+                            newpath = '@executable_path/../lib/libgcc_s.1.dylib'
+                            subs.append ((f, newpath))
+                        else:
+                            raise Exception ('found targetdir in linkage[%(name)s]: %(f)s' % locals ())
                     printf ('FIXME: skipping[%(name)s]: %(f)s, hope this is ok' % locals ())
 
         self.rewire_mach_o_object (name, subs)