mirror of
https://github.com/python/cpython.git
synced 2025-09-15 05:06:12 +00:00
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.
This commit is contained in:
parent
c01288387c
commit
03b75ddf7c
2 changed files with 4 additions and 0 deletions
3
setup.py
3
setup.py
|
@ -1580,6 +1580,9 @@ class PyBuildExt(build_ext):
|
|||
# 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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue