Skip to content

Commit 426ea7e

Browse files
committed
bpo-34449: HP aCC complains about invalid -fPIC on HP-UX
-fPIC is code generation option and not a link option. At compile time '+z' is already properly used with HP aCC and shared libraries are correctly linked with '+b'. This switch can safely be dropped. Patch by Michael Osipov.
1 parent ff6b2e6 commit 426ea7e

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 for HP aCC on HP-UX. Patch by Michael Osipov.

setup.py

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

1976-
elif HOST_PLATFORM.startswith('hp-ux'):
1977-
extra_link_args.append('-fPIC')
1978-
19791976
ext = Extension('_ctypes',
19801977
include_dirs=include_dirs,
19811978
extra_compile_args=extra_compile_args,

0 commit comments

Comments
 (0)