summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-05-31 08:09:21 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-05-31 08:09:21 (GMT)
commitb71bcb632260fdb2ee80a45ddce2c724f66edb4c (patch)
tree8d430cdfe098a632c18c7129d6b9034b54a9f74d /Lib/distutils
parent19a5a710fc69f11960718b56d056f6b0d1872851 (diff)
downloadcpython-b71bcb632260fdb2ee80a45ddce2c724f66edb4c.zip
cpython-b71bcb632260fdb2ee80a45ddce2c724f66edb4c.tar.gz
cpython-b71bcb632260fdb2ee80a45ddce2c724f66edb4c.tar.bz2
Patch #740301: Add +s when linking shared libraries on HP-UX, use -L
for the library path.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/unixccompiler.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py
index e444917..02db910 100644
--- a/Lib/distutils/unixccompiler.py
+++ b/Lib/distutils/unixccompiler.py
@@ -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