commit | 69ceb33baccb85d7d215733c14861c1b3548aba5 | [log] [tgz] |
---|---|---|
author | Martin v. Löwis <martin@v.loewis.de> | Thu Nov 21 20:33:24 2002 +0000 |
committer | Martin v. Löwis <martin@v.loewis.de> | Thu Nov 21 20:33:24 2002 +0000 |
tree | 25a3fe0db1ea6fb3b7575330fbf931e8697aa4cb | |
parent | 8f8d1d21406f4fed13a817f295a43208ff0bd645 [diff] |
Patch #642019: Recognize gcc-x.y as gcc.
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 @@ 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