]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (GH-8847)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 19 May 2022 16:51:08 +0000 (09:51 -0700)
committerGitHub <noreply@github.com>
Thu, 19 May 2022 16:51:08 +0000 (09:51 -0700)
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 09be18a73d81aa82cc57a782f3b0a9811e43ad3b)

Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst [new file with mode: 0644]
setup.py

diff --git a/Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst b/Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst
new file mode 100644 (file)
index 0000000..53b75ae
--- /dev/null
@@ -0,0 +1 @@
+Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.
index f45cd6de33749bde2ad24663b9dbe5f84482dcbe..4c497346e8d7e278a59cff8dca59569f00ef2221 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1408,9 +1408,6 @@ class PyBuildExt(build_ext):
             # 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,