Commits

Armin Rigo committed d1554ef

Revert r75013. It's a mess because we don't know if the
current directory is /tmp/usession-xxx/testing_1 or
/tmp/usession-xxx itself.

  • Participants
  • Parent commits 4305c81

Comments (0)

Files changed (1)

File pypy/translator/tool/cbuild.py

         if host.name.startswith('darwin'):
             for sym in self.export_symbols:
                 f.write("_%s\n" % (sym,))
-            d['link_extra'] += ("-Wl,-exported_symbols_list,../" +
-                                file_name.basename, )
+            d['link_extra'] += ("-Wl,-exported_symbols_list,"+str(file_name), )
         else:
             f.write("{\n")
             for sym in self.export_symbols:
                 f.write("%s;\n" % (sym,))
             f.write("};")
-            d['link_extra'] += ("-Wl,--export-dynamic,--version-script=../" +
-                                file_name.basename, )
+            d['link_extra'] += ("-Wl,--export-dynamic,--version-script=" + str(file_name), )
         f.close()
         d['export_symbols'] = ()
         return ExternalCompilationInfo(**d)