]> granicus.if.org Git - python/commitdiff
Merged revisions 74728 via svnmerge from
authorTarek Ziadé <ziade.tarek@gmail.com>
Wed, 9 Sep 2009 08:34:06 +0000 (08:34 +0000)
committerTarek Ziadé <ziade.tarek@gmail.com>
Wed, 9 Sep 2009 08:34:06 +0000 (08:34 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r74728 | tarek.ziade | 2009-09-09 10:14:20 +0200 (Wed, 09 Sep 2009) | 1 line

  Issue #6163: Fixed HP-UX runtime library dir options in distutils.unixcompiler
........

Lib/distutils/unixccompiler.py
Misc/NEWS

index 045368a925d7204b5d7a6fc2129be47789dd080f..7556cbdbf514359d4b7897335ec8dca226eb0d61 100644 (file)
@@ -284,7 +284,9 @@ class UnixCCompiler(CCompiler):
             # MacOSX's linker doesn't understand the -R flag at all
             return "-L" + dir
         elif sys.platform[:5] == "hp-ux":
-            return "+s -L" + dir
+            if "gcc" in compiler or "g++" in compiler:
+                return ["-Wl,+s", "-L" + dir]
+            return ["+s", "-L" + dir]
         elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
             return ["-rpath", dir]
         elif compiler[:3] == "gcc" or compiler[:3] == "g++":
index c44a56d75cc93cb3c3f21448b904716474d125ee..0f4d90ee4632605b7b3ca5e39478c11ef28ed9be 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -322,6 +322,10 @@ Core and Builtins
 Library
 -------
 
+- Issue #6163: Fixed HP-UX runtime library dir options in
+  distutils.unixcompiler. Initial patch by Sridhar Ratnakumar and
+  Michael Haubenwallner.
+
 - Issue #4660: If a multiprocessing.JoinableQueue.put() was preempted, it was
   possible to get a spurious 'task_done() called too many times' error.