diff -ur Python-3.5.0a2_orig/Lib/distutils/unixccompiler.py Python-3.5.0a2/Lib/distutils/unixccompiler.py --- Python-3.5.0a2_orig/Lib/distutils/unixccompiler.py 2015-03-08 01:25:26.000000000 -0700 +++ Python-3.5.0a2/Lib/distutils/unixccompiler.py 2015-03-17 13:47:07.523198053 -0600 @@ -175,18 +175,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 += 1 - linker[i] = self.compiler_cxx[i] if sys.platform == 'darwin': linker = _osx_support.compiler_fixup(linker, ld_args)