--- Lib/distutils/msvc9compiler.py 2011-08-14 11:17:42.000000000 -0700 +++ Lib/distutils/msvc9compiler.py 2012-10-21 10:38:42.257682200 -0700 @@ -411,10 +411,16 @@ '/Z7', '/D_DEBUG'] self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO'] + if self.__version >= 10: + self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO', '/Manifest'] if self.__version >= 7: self.ldflags_shared_debug = [ '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG', '/pdb:None' ] + if self.__version >= 10: + self.ldflags_shared_debug = [ + '/DLL', '/nologo', '/INCREMENTAL:NO', '/DEBUG', '/pdb:None', '/Manifest' + ] self.ldflags_static = [ '/nologo'] self.initialized = True