]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #973204: Use -rpath instead of -R on Irix and True64.
authorMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Aug 2004 16:45:13 +0000 (16:45 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sun, 29 Aug 2004 16:45:13 +0000 (16:45 +0000)
Lib/distutils/ccompiler.py
Lib/distutils/unixccompiler.py
Misc/NEWS

index 751ec0694bcdb62bc9d9d990b56a46ccb51ac447..905543f4fe575cb302e66d1f83d8ccc98a6c2874 100644 (file)
@@ -1237,7 +1237,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 11ecb9f6aec35dd8bfb80d5fb0aad74e04a73129..a9c43d3712ed7524ccc6d3a2d85000c71ec977d4 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:
index f64e33a4718200b08c9675c915735cbeb83f10f2..0b2675c7b28ab7fba547142f64d2ef25eb837b51 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -119,6 +119,9 @@ Tools/Demos
 Build
 -----
 
+- Patch #973204: Use -rpath instead of -R for runtime_library_dirs 
+  on Irix and True64.
+
 - Bug #978645: Modules/getpath.c now builds properly under --disable-framework
   build under OS X.