diff --git a/Misc/ACKS b/Misc/ACKS index cab01d423d6..2f1604afdcd 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -862,6 +862,7 @@ Mark Roddy Kevin Rodgers Giampaolo Rodola Elson Rodriguez +Adi Roiban Luis Rojas Mike Romberg Armin Ronacher diff --git a/Misc/NEWS b/Misc/NEWS index f7440eea46c..ea5448426b3 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -264,6 +264,8 @@ Library Build ----- +- Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. + - Issue #14387: Do not include accu.h from Python.h. - Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. diff --git a/setup.py b/setup.py index fb8c4b604dd..8c6131c6ab1 100644 --- a/setup.py +++ b/setup.py @@ -464,6 +464,10 @@ def detect_modules(self): if platform in ['osf1', 'unixware7', 'openunix8']: lib_dirs += ['/usr/ccs/lib'] + # HP-UX11iv3 keeps files in lib/hpux folders. + if platform == 'hp-ux11': + lib_dirs += ['/usr/lib/hpux64', '/usr/lib/hpux32'] + if platform == 'darwin': # This should work on any unixy platform ;-) # If the user has bothered specifying additional -I and -L flags