From b71bcb632260fdb2ee80a45ddce2c724f66edb4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 31 May 2003 08:09:21 +0000 Subject: [PATCH] Patch #740301: Add +s when linking shared libraries on HP-UX, use -L for the library path. --- Lib/distutils/unixccompiler.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index e444917fb64..02db910ae6c 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -203,8 +203,10 @@ def runtime_library_dir_option(self, dir): 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