Skip to content

Commit 0f1748d

Browse files
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 09be18a) Co-authored-by: Michael Osipov <[email protected]>
1 parent 37d60c0 commit 0f1748d

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.

setup.py

-3
Original file line numberDiff line numberDiff line change
@@ -1408,9 +1408,6 @@ def detect_ctypes(self):
14081408
# finding some -z option for the Sun compiler.
14091409
extra_link_args.append('-mimpure-text')
14101410

1411-
elif HOST_PLATFORM.startswith('hp-ux'):
1412-
extra_link_args.append('-fPIC')
1413-
14141411
ext = Extension('_ctypes',
14151412
include_dirs=include_dirs,
14161413
extra_compile_args=extra_compile_args,

0 commit comments

Comments
 (0)