]> granicus.if.org Git - python/commitdiff
Patch #973204: Use -rpath instead of -R on Irix and Tru64.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Aug 2004 16:40:55 +0000 (16:40 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Aug 2004 16:40:55 +0000 (16:40 +0000)
Lib/distutils/ccompiler.py
Lib/distutils/unixccompiler.py

index a3b1ffa4d5af2f3fa5f6a22c171932bad453676a..e5b9d7cc11c1c7e14289dfce1bd499cacc08aaaf 100644 (file)
@@ -1241,7 +1241,11 @@ def gen_lib_options (compiler, library_dirs, runtime_library_dirs, libraries):
         lib_opts.append (compiler.library_dir_option (dir))
 
     for dir in runtime_library_dirs:
-        lib_opts.append (compiler.runtime_library_dir_option (dir))
+        opt = compiler.runtime_library_dir_option (dir)
+        if type(opt) is ListType:
+            lib_opts = lib_opts + opt
+        else:
+            lib_opts.append (opt)
 
     # XXX it's important that we *not* remove redundant library mentions!
     # sometimes you really do have to say "-lfoo -lbar -lfoo" in order to
index 24cbcb53e502bd6fe6c3969301acd5995ab1b0ee..56998c3507e9ff7cf0aecc5fde21b8ce323475da 100644 (file)
@@ -205,6 +205,8 @@ class UnixCCompiler(CCompiler):
             return "-L" + dir
         elif sys.platform[:5] == "hp-ux":
             return "+s -L" + dir
+        elif sys.platform[:7] == "irix646" or sys.platform[:6] == "osf1V5":
+            return ["-rpath", dir]
         elif compiler[:3] == "gcc" or compiler[:3] == "g++":
             return "-Wl,-R" + dir
         else: