]> granicus.if.org Git - python/commitdiff
Patch #740301: Add +s when linking shared libraries on HP-UX, use -L
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 31 May 2003 08:09:21 +0000 (08:09 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 31 May 2003 08:09:21 +0000 (08:09 +0000)
for the library path.

Lib/distutils/unixccompiler.py

index e444917fb644b24f993db3fb3c7cb6ca8241882c..02db910ae6cd538405846dae395543cbc828d56f 100644 (file)
@@ -203,8 +203,10 @@ class UnixCCompiler(CCompiler):
         if sys.platform[:6] == "darwin":
             # MacOSX's linker doesn't understand the -R flag at all
             return "-L" + dir
-        elif compiler[:3] == "gcc" or compiler[:3] == "g++":
-            return "-Wl,-R" + dir
+      elif sys.platform[:5] == "hp-ux":
+            return "+s -L" + dir
+      elif compiler[:3] == "gcc" or compiler[:3] == "g++":
+          return "-Wl,-R" + dir
         else:
             return "-R" + dir