summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/unixccompiler.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-21 20:33:24 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-21 20:33:24 (GMT)
commit69ceb33baccb85d7d215733c14861c1b3548aba5 (patch)
tree25a3fe0db1ea6fb3b7575330fbf931e8697aa4cb /Lib/distutils/unixccompiler.py
parent8f8d1d21406f4fed13a817f295a43208ff0bd645 (diff)
downloadcpython-69ceb33baccb85d7d215733c14861c1b3548aba5.zip
cpython-69ceb33baccb85d7d215733c14861c1b3548aba5.tar.gz
cpython-69ceb33baccb85d7d215733c14861c1b3548aba5.tar.bz2
Patch #642019: Recognize gcc-x.y as gcc.
Diffstat (limited to 'Lib/distutils/unixccompiler.py')
-rw-r--r--Lib/distutils/unixccompiler.py2
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