From: Charles-François Natali Date: Thu, 12 Apr 2012 17:11:54 +0000 (+0200) Subject: Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. X-Git-Tag: v2.7.4rc1~909 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0d3db3a8157f38e6dc7ea69500069c86c0b40be7;p=python Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. --- diff --git a/Misc/ACKS b/Misc/ACKS index 73afc97ec9..e36e626ca3 100644 --- a/Misc/ACKS +++ b/Misc/ACKS @@ -717,6 +717,7 @@ Jim Robinson Andy Robinson Kevin Rodgers Giampaolo Rodola +Adi Roiban Mike Romberg Armin Ronacher Case Roole diff --git a/Misc/NEWS b/Misc/NEWS index f4da7e7785..8aa7315b96 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -94,6 +94,8 @@ Library Build ----- +- Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban. + - Issue #14437: Fix building the _io module under Cygwin. diff --git a/setup.py b/setup.py index 2c1473c8bb..064bbc0f08 100644 --- a/setup.py +++ b/setup.py @@ -451,6 +451,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