Skip to content

Commit

Permalink
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (GH-8847)
Browse files Browse the repository at this point in the history
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 <michael.osipov@siemens.com>
  • Loading branch information
miss-islington and michael-o committed May 19, 2022
1 parent 37d60c0 commit 0f1748d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
@@ -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
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

0 comments on commit 0f1748d

Please sign in to comment.