[pypy-svn] r78900 - pypy/branch/fast-forward/lib_pypy

afa at codespeak.net afa at codespeak.net
Mon Nov 8 22:49:26 CET 2010


Author: afa
Date: Mon Nov  8 22:49:25 2010
New Revision: 78900

Modified:
   pypy/branch/fast-forward/lib_pypy/_testcapi.py
Log:
Fix _testcapi compilation on 64bit linux


Modified: pypy/branch/fast-forward/lib_pypy/_testcapi.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/_testcapi.py	(original)
+++ pypy/branch/fast-forward/lib_pypy/_testcapi.py	Mon Nov  8 22:49:25 2010
@@ -13,8 +13,13 @@
 
     # Compile .c file
     include_dir = os.path.join(thisdir, '..', 'include')
+    if sys.platform == 'win32':
+        ccflags = []
+    else:
+        ccflags = ['-fPIC', '-Wimplicit-function-declaration']
     res = compiler.compile([os.path.join(thisdir, '_testcapimodule.c')],
-                           include_dirs=[include_dir])
+                           include_dirs=[include_dir],
+                           extra_preargs=ccflags)
     object_filename = res[0]
 
     # set link options



More information about the Pypy-commit mailing list