gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (GH-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.
(cherry picked from commit 09be18a73d)

Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
This commit is contained in:
Miss Islington (bot) 2022-05-19 09:51:08 -07:00 committed by GitHub
parent 37d60c0255
commit 0f1748d66e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View file

@ -0,0 +1 @@
Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.

View file

@ -1408,9 +1408,6 @@ class PyBuildExt(build_ext):
# finding some -z option for the Sun compiler.
extra_link_args.append('-mimpure-text')
elif HOST_PLATFORM.startswith('hp-ux'):
extra_link_args.append('-fPIC')
ext = Extension('_ctypes',
include_dirs=include_dirs,
extra_compile_args=extra_compile_args,