diff -ur Python-2.7.9/Lib/distutils/unixccompiler.py Python-2.7.9m/Lib/distutils/unixccompiler.py --- Python-2.7.9/Lib/distutils/unixccompiler.py 2014-12-10 08:59:34.000000000 -0700 +++ Python-2.7.9m/Lib/distutils/unixccompiler.py 2015-02-23 10:56:48.031678576 -0700 @@ -178,19 +178,6 @@ linker = self.linker_exe[:] else: linker = self.linker_so[:] - if target_lang == "c++" and self.compiler_cxx: - # skip over environment variable settings if /usr/bin/env - # is used to set up the linker's environment. - # This is needed on OSX. Note: this assumes that the - # normal and C++ compiler have the same environment - # settings. - i = 0 - if os.path.basename(linker[0]) == "env": - i = 1 - while '=' in linker[i]: - i = i + 1 - - linker[i] = self.compiler_cxx[i] if sys.platform == 'darwin': linker = _osx_support.compiler_fixup(linker, ld_args)