[Python-checkins] python/dist/src/Lib/distutils ccompiler.py, 1.59, 1.60 unixccompiler.py, 1.55, 1.56

loewis at users.sourceforge.net loewis at users.sourceforge.net
Sun Aug 29 18:41:14 CEST 2004


Update of /cvsroot/python/python/dist/src/Lib/distutils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24086/Lib/distutils

Modified Files:
	ccompiler.py unixccompiler.py 
Log Message:
Patch #973204: Use -rpath instead of -R on Irix and Tru64.


Index: ccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/ccompiler.py,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -d -r1.59 -r1.60
--- ccompiler.py	18 Jul 2004 06:14:42 -0000	1.59
+++ ccompiler.py	29 Aug 2004 16:40:55 -0000	1.60
@@ -1241,7 +1241,11 @@
         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: unixccompiler.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/unixccompiler.py,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- unixccompiler.py	18 Jul 2004 06:14:42 -0000	1.55
+++ unixccompiler.py	29 Aug 2004 16:40:55 -0000	1.56
@@ -205,6 +205,8 @@
             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:



More information about the Python-checkins mailing list