]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Patch #642019: Recognize gcc-x.y as gcc.
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 21 Nov 2002 20:33:24 +0000 (20:33 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 21 Nov 2002 20:33:24 +0000 (20:33 +0000)
Lib/distutils/unixccompiler.py

index 603dfe90cc9125fed619c3fe243997133e5b9f8a..2a6b1beeea410b898bcae3dd5b52965b1913aa81 100644 (file)
@@ -201,7 +201,7 @@ class UnixCCompiler(CCompiler):
         if sys.platform[:6] == "darwin":
             # MacOSX's linker doesn't understand the -R flag at all
             return "-L" + dir
-        elif compiler == "gcc" or compiler == "g++":
+        elif compiler[:3] == "gcc" or compiler[:3] == "g++":
             return "-Wl,-R" + dir
         else:
             return "-R" + dir