65321bb60e6e75dcd834c0be57362820d32e6391
[gentoo.git] /
1 --- a/lib-python/2.7/distutils/unixccompiler.py
2 +++ b/lib-python/2.7/distutils/unixccompiler.py
3 @@ -297,7 +297,7 @@
4          # this time, there's no way to determine this information from
5          # the configuration data stored in the Python installation, so
6          # we use this hack.
7 -        compiler = os.path.basename(sysconfig.get_config_var("CC"))
8 +        compiler = os.path.basename(self.compiler[0])
9          if sys.platform[:6] == "darwin":
10              # MacOSX's linker doesn't understand the -R flag at all
11              return "-L" + dir