[issue16296] Patch to fix building on Win32/64 under VS 2010

Max Naumov report at bugs.python.org
Mon Mar 17 16:07:16 CET 2014


Max Naumov added the comment:

Wouldn't this be more correct?
--- Lib/distutils/msvc9compiler.py	2013-08-03T16:17:08+04:00
+++ Lib/distutils/msvc9compiler.py	2014-03-17T18:36:50.078672+04:00
@@ -411,7 +411,11 @@
                                           '/Z7', '/D_DEBUG']
 
         self.ldflags_shared = ['/DLL', '/nologo', '/INCREMENTAL:NO']
-        if self.__version >= 7:
+        if self.__version >= 10:
+            self.ldflags_shared = [
+                '/DLL', '/nologo', '/INCREMENTAL:NO', '/DEBUG', '/pdb:None', '/Manifest'
+                ]
+        elif self.__version >= 7:
             self.ldflags_shared_debug = [
                 '/DLL', '/nologo', '/INCREMENTAL:no', '/DEBUG', '/pdb:None'
                 ]

----------
nosy: +Max.Naumov
Added file: http://bugs.python.org/file34465/msvc9compilerpatch.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16296>
_______________________________________


More information about the Python-bugs-list mailing list