]> granicus.if.org Git - python/commitdiff
Issue #14557: Fix extensions build on HP-UX. Patch by Adi Roiban.
authorCharles-François Natali <neologix@free.fr>
Thu, 12 Apr 2012 17:07:25 +0000 (19:07 +0200)
committerCharles-François Natali <neologix@free.fr>
Thu, 12 Apr 2012 17:07:25 +0000 (19:07 +0200)
Misc/ACKS
Misc/NEWS
setup.py

index 3693c1c575055cbedc98768e29cdaddd1f542752..aab5b20a599a359f34b85e7917cba8c163fba886 100644 (file)
--- 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
index ebdfa7c8313dd2feb59979f7ef7093fd85061689..a9fbd8dc6da197b1d527aa6b7477cd43a0dbe2e8 100644 (file)
--- 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.
index d69875cffba112eb85b26880cc901c4cc95fd5e1..b2829ac647281584091f432e6315f5e4bdd4539d 100644 (file)
--- 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