Skip to content

Commit

Permalink
bpo-34449: HP aCC complains about invalid -fPIC on HP-UX
Browse files Browse the repository at this point in the history
-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.
  • Loading branch information
michael-o committed Aug 16, 2023
1 parent 1663f8b commit f2fd7c0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop invalid compiler switch for HP aCC on HP-UX. Patch by Michael Osipov.
3 changes: 0 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -1983,9 +1983,6 @@ def detect_ctypes(self):
# 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,
Expand Down

0 comments on commit f2fd7c0

Please sign in to comment.