Commit 69ceb33b authored by Martin v. Löwis's avatar Martin v. Löwis

Patch #642019: Recognize gcc-x.y as gcc.

parent 8f8d1d21
...@@ -201,7 +201,7 @@ class UnixCCompiler(CCompiler): ...@@ -201,7 +201,7 @@ class UnixCCompiler(CCompiler):
if sys.platform[:6] == "darwin": if sys.platform[:6] == "darwin":
# MacOSX's linker doesn't understand the -R flag at all # MacOSX's linker doesn't understand the -R flag at all
return "-L" + dir return "-L" + dir
elif compiler == "gcc" or compiler == "g++": elif compiler[:3] == "gcc" or compiler[:3] == "g++":
return "-Wl,-R" + dir return "-Wl,-R" + dir
else: else:
return "-R" + dir return "-R" + dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment