Alexandre Vassalotti added the comment:

> The patch is incorrect since find returns -1 on failure.

Oops, that is right. I attached the corrected patch.

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1032>
__________________________________
Index: Lib/distutils/unixccompiler.py
===================================================================
--- Lib/distutils/unixccompiler.py	(revision 57274)
+++ Lib/distutils/unixccompiler.py	(working copy)
@@ -282,7 +282,7 @@
             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++":
+        elif "gcc" in compiler or "g++" in compiler:
             return "-Wl,-R" + dir
         else:
             return "-R" + dir
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to