From: Martin v. Löwis Date: Thu, 21 Nov 2002 20:33:24 +0000 (+0000) Subject: Patch #642019: Recognize gcc-x.y as gcc. X-Git-Tag: v2.3c1~3327 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=69ceb33baccb85d7d215733c14861c1b3548aba5;p=thirdparty%2FPython%2Fcpython.git Patch #642019: Recognize gcc-x.y as gcc. --- diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 603dfe90cc91..2a6b1beeea41 100644 --- a/Lib/distutils/unixccompiler.py +++ b/Lib/distutils/unixccompiler.py @@ -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