From: Charles-François Natali Date: Thu, 12 Apr 2012 17:07:25 +0000 (+0200) Subject: Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. X-Git-Tag: v3.3.0a3~250^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5739e102ddf62667167da7da878938d64896733d;p=thirdparty%2FPython%2Fcpython.git Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. --- diff --git a/Misc/ACKS b/Misc/ACKS index 3693c1c57505..aab5b20a599a 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -783,6 +783,7 @@ Andy Robinson Mark Roddy Kevin Rodgers Giampaolo Rodola +Adi Roiban Mike Romberg Armin Ronacher Case Roole diff --git a/Misc/NEWS b/Misc/NEWS index ebdfa7c8313d..a9fbd8dc6da1 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -131,6 +131,8 @@ Extension Modules Build ----- +- Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. + - Issue #14437: Fix building the _io module under Cygwin. - Issue #14387: Do not include accu.h from Python.h. diff --git a/setup.py b/setup.py index d69875cffba1..b2829ac64728 100644 --- a/setup.py +++ b/setup.py @@ -467,6 +467,10 @@ class PyBuildExt(build_ext): 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