[Numpy-svn] r6149 - trunk/numpy/distutils/fcompiler

numpy-svn at scipy.org numpy-svn at scipy.org
Tue Dec 16 13:53:33 EST 2008


Author: cdavid
Date: 2008-12-16 12:53:25 -0600 (Tue, 16 Dec 2008)
New Revision: 6149

Modified:
   trunk/numpy/distutils/fcompiler/gnu.py
Log:
Add mingw32 and mingwex libraries as runtime libraries for extensions which use fortran and are built with gfortran+MS compiler.

Modified: trunk/numpy/distutils/fcompiler/gnu.py
===================================================================
--- trunk/numpy/distutils/fcompiler/gnu.py	2008-12-16 18:48:37 UTC (rev 6148)
+++ trunk/numpy/distutils/fcompiler/gnu.py	2008-12-16 18:53:25 UTC (rev 6149)
@@ -289,6 +289,13 @@
         opt = GnuFCompiler.get_libraries(self)
         if sys.platform == 'darwin':
             opt.remove('cc_dynamic')
+	if sys.platform == 'win32':
+	    c_compiler = self.c_compiler
+	    if c_compiler and c_compiler.compiler_type == "msvc":
+		if "gcc" in opt:
+		    i = opt.index("gcc")
+		    opt.insert(i+1, "mingwex")
+		    opt.insert(i+1, "mingw32")
         return opt
 
     def get_target(self):




More information about the Numpy-svn mailing list