diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-11-21 20:33:24 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-11-21 20:33:24 +0000 |
| commit | c8618f4eddcd6ecc5ea54387494cb5d8a00f8dcb (patch) | |
| tree | 54bc6322c5b4ade1246b7edbab7041396805140b /unixccompiler.py | |
| parent | 66ffcc6481adb327ae0c529f439bed2c418e97ef (diff) | |
| download | python-setuptools-git-c8618f4eddcd6ecc5ea54387494cb5d8a00f8dcb.tar.gz | |
Patch #642019: Recognize gcc-x.y as gcc.
Diffstat (limited to 'unixccompiler.py')
| -rw-r--r-- | unixccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unixccompiler.py b/unixccompiler.py index 603dfe90..2a6b1bee 100644 --- a/unixccompiler.py +++ b/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 |
