From f2fd7c0ae0cabe9ed65c4e275965d3cca8ca0b84 Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Tue, 21 Aug 2018 11:07:38 +0200 Subject: [PATCH] bpo-34449: HP aCC complains about invalid -fPIC on HP-UX -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. --- .../NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst | 1 + setup.py | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2018-08-21-11-10-18.bpo-34449.Z3qm3c.rst 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 00000000000000..1bf6e73c767c36 --- /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 for HP aCC on HP-UX. Patch by Michael Osipov. diff --git a/setup.py b/setup.py index 57be07a7e0f824..01a503dcbbf0b0 100644 --- a/setup.py +++ b/setup.py @@ -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,