mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (#8847)
At compile time, '+z' is already properly used with HP aCC, and shared libraries are correctly linked with '+b'. The '-fPIC' switch can safely be dropped.
This commit is contained in:
parent
2cdd57f119
commit
09be18a73d
2 changed files with 1 additions and 3 deletions
|
@ -0,0 +1 @@
|
||||||
|
Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.
|
3
setup.py
3
setup.py
|
@ -1408,9 +1408,6 @@ class PyBuildExt(build_ext):
|
||||||
# finding some -z option for the Sun compiler.
|
# finding some -z option for the Sun compiler.
|
||||||
extra_link_args.append('-mimpure-text')
|
extra_link_args.append('-mimpure-text')
|
||||||
|
|
||||||
elif HOST_PLATFORM.startswith('hp-ux'):
|
|
||||||
extra_link_args.append('-fPIC')
|
|
||||||
|
|
||||||
ext = Extension('_ctypes',
|
ext = Extension('_ctypes',
|
||||||
include_dirs=include_dirs,
|
include_dirs=include_dirs,
|
||||||
extra_compile_args=extra_compile_args,
|
extra_compile_args=extra_compile_args,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue