Skip to content

bpo-34449: HP aCC complains about invalid -fPIC on HP-UX #8847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop invalid compiler switch ``-fPIC`` 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 @@ -1408,9 +1408,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