summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Osipov <michael.osipov@siemens.com>2022-05-19 17:42:21 +0200
committerGitHub <noreply@github.com>2022-05-19 17:42:21 +0200
commit09be18a73d81aa82cc57a782f3b0a9811e43ad3b (patch)
treeb220db22f0c60b01a96df108b387f39e96d9de10
parent2cdd57f119e3b85f1bfd28c7ff040e0d9bcaf115 (diff)
downloadcpython-git-09be18a73d81aa82cc57a782f3b0a9811e43ad3b.tar.gz
gh-78630: Drop invalid HP aCC compiler switch -fPIC on HP-UX (#8847)
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.
-rw-r--r--Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst1
-rw-r--r--setup.py3
2 files changed, 1 insertions, 3 deletions
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
index 0000000000..53b75aee9c
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst
@@ -0,0 +1 @@
+Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.
diff --git a/setup.py b/setup.py
index f45cd6de33..4c497346e8 100644
--- 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,