[pypy-svn] r75014 - pypy/trunk/pypy/translator/tool

arigo at codespeak.net arigo at codespeak.net
Tue Jun 1 22:49:34 CEST 2010


Author: arigo
Date: Tue Jun  1 22:49:32 2010
New Revision: 75014

Modified:
   pypy/trunk/pypy/translator/tool/cbuild.py
Log:
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.


Modified: pypy/trunk/pypy/translator/tool/cbuild.py
==============================================================================
--- pypy/trunk/pypy/translator/tool/cbuild.py	(original)
+++ pypy/trunk/pypy/translator/tool/cbuild.py	Tue Jun  1 22:49:32 2010
@@ -276,15 +276,13 @@
         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)



More information about the Pypy-commit mailing list