[Python-checkins] r63511 - in python/trunk: Modules/_ctypes/libffi/fficonfig.py.in setup.py
thomas.heller
python-checkins at python.org
Tue May 20 21:53:47 CEST 2008
Author: thomas.heller
Date: Tue May 20 21:53:47 2008
New Revision: 63511
Log:
On HPUX, -fPIC must be used for linking. _ctypes now builds on HP-UX
IA64 and PA machines.
The ctypes unittests work fine on the IA64, but dump core in
test_qsort on the PA.
Modified:
python/trunk/Modules/_ctypes/libffi/fficonfig.py.in
python/trunk/setup.py
Modified: python/trunk/Modules/_ctypes/libffi/fficonfig.py.in
==============================================================================
--- python/trunk/Modules/_ctypes/libffi/fficonfig.py.in (original)
+++ python/trunk/Modules/_ctypes/libffi/fficonfig.py.in Tue May 20 21:53:47 2008
@@ -25,6 +25,7 @@
'SH64': ['src/sh64/sysv.S', 'src/sh64/ffi.c'],
'PA': ['src/pa/linux.S', 'src/pa/ffi.c'],
'PA_LINUX': ['src/pa/linux.S', 'src/pa/ffi.c'],
+ 'PA_HPUX': ['src/pa/hpux32.s', 'src/pa/ffi.c'],
}
ffi_srcdir = '@srcdir@'
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py (original)
+++ python/trunk/setup.py Tue May 20 21:53:47 2008
@@ -1580,6 +1580,9 @@
# finding some -z option for the Sun compiler.
extra_link_args.append('-mimpure-text')
+ elif sys.platform.startswith('hpux'):
+ extra_link_args.append('-fPIC')
+
ext = Extension('_ctypes',
include_dirs=include_dirs,
extra_compile_args=extra_compile_args,
More information about the Python-checkins
mailing list