From c8618f4eddcd6ecc5ea54387494cb5d8a00f8dcb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Thu, 21 Nov 2002 20:33:24 +0000 Subject: Patch #642019: Recognize gcc-x.y as gcc. --- unixccompiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unixccompiler.py') 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 -- cgit v1.2.1