mirror of
https://github.com/python/cpython.git
synced 2025-07-24 19:54:21 +00:00
Patch #740301: Add +s when linking shared libraries on HP-UX, use -L
for the library path.
This commit is contained in:
parent
19a5a710fc
commit
b71bcb6322
1 changed files with 4 additions and 2 deletions
|
@ -203,6 +203,8 @@ class UnixCCompiler(CCompiler):
|
||||||
if sys.platform[:6] == "darwin":
|
if sys.platform[:6] == "darwin":
|
||||||
# MacOSX's linker doesn't understand the -R flag at all
|
# MacOSX's linker doesn't understand the -R flag at all
|
||||||
return "-L" + dir
|
return "-L" + dir
|
||||||
|
elif sys.platform[:5] == "hp-ux":
|
||||||
|
return "+s -L" + dir
|
||||||
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
|
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
|
||||||
return "-Wl,-R" + dir
|
return "-Wl,-R" + dir
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue