Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 061f132

Browse files
committed
Patch #973204: Use -rpath instead of -R on Irix and Tru64.
1 parent e064b41 commit 061f132

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

Lib/distutils/ccompiler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,11 @@ def gen_lib_options (compiler, library_dirs, runtime_library_dirs, libraries):
12411241
lib_opts.append (compiler.library_dir_option (dir))
12421242

12431243
for dir in runtime_library_dirs:
1244-
lib_opts.append (compiler.runtime_library_dir_option (dir))
1244+
opt = compiler.runtime_library_dir_option (dir)
1245+
if type(opt) is ListType:
1246+
lib_opts = lib_opts + opt
1247+
else:
1248+
lib_opts.append (opt)
12451249

12461250
# XXX it's important that we *not* remove redundant library mentions!
12471251
# sometimes you really do have to say "-lfoo -lbar -lfoo" in order to

Lib/distutils/unixccompiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ def runtime_library_dir_option(self, dir):
205205
return "-L" + dir
206206
elif sys.platform[:5] == "hp-ux":
207207
return "+s -L" + dir
208+
elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
209+
return ["-rpath", dir]
208210
elif compiler[:3] == "gcc" or compiler[:3] == "g++":
209211
return "-Wl,-R" + dir
210212
else:

0 commit comments

Comments
 (0)