diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-21 20:33:24 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-21 20:33:24 (GMT) |
commit | 69ceb33baccb85d7d215733c14861c1b3548aba5 (patch) | |
tree | 25a3fe0db1ea6fb3b7575330fbf931e8697aa4cb /Lib/distutils | |
parent | 8f8d1d21406f4fed13a817f295a43208ff0bd645 (diff) | |
download | cpython-69ceb33baccb85d7d215733c14861c1b3548aba5.zip cpython-69ceb33baccb85d7d215733c14861c1b3548aba5.tar.gz cpython-69ceb33baccb85d7d215733c14861c1b3548aba5.tar.bz2 |
Patch #642019: Recognize gcc-x.y as gcc.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/unixccompiler.py b/Lib/distutils/unixccompiler.py index 603dfe9..2a6b1be 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 |