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>
--- /dev/null
+Drop invalid compiler switch ``-fPIC`` for HP aCC on HP-UX. Patch by Michael Osipov.
# 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,