[pypy-svn] r78773 - pypy/branch/fast-forward/lib_pypy
afa at codespeak.net
afa at codespeak.net
Fri Nov 5 23:08:03 CET 2010
Author: afa
Date: Fri Nov 5 23:08:01 2010
New Revision: 78773
Modified:
pypy/branch/fast-forward/lib_pypy/_ctypes_test.py
Log:
Fix compilation on 64bit linux
Modified: pypy/branch/fast-forward/lib_pypy/_ctypes_test.py
==============================================================================
--- pypy/branch/fast-forward/lib_pypy/_ctypes_test.py (original)
+++ pypy/branch/fast-forward/lib_pypy/_ctypes_test.py Fri Nov 5 23:08:01 2010
@@ -20,8 +20,13 @@
# Compile .c file
include_dir = os.path.join(thisdir, '..', 'include')
+ if sys.platform == 'win32':
+ ccflags = []
+ else:
+ ccflags = ['-fPIC']
res = compiler.compile([os.path.join(thisdir, '_ctypes_test.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