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 compiler.find("gcc") or compiler.find("g++"): return "-Wl,-R" + dir else: return "-R" + dir