From 0746f06c55c49b1efeecd09eaa6a4aa0ed1e146c Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Tue, 16 Dec 2008 18:53:25 +0000 Subject: Add mingw32 and mingwex libraries as runtime libraries for extensions which use fortran and are built with gfortran+MS compiler. --- numpy/distutils/fcompiler/gnu.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'numpy/distutils/fcompiler') diff --git a/numpy/distutils/fcompiler/gnu.py b/numpy/distutils/fcompiler/gnu.py index d1b12c540..7b642aff3 100644 --- a/numpy/distutils/fcompiler/gnu.py +++ b/numpy/distutils/fcompiler/gnu.py @@ -289,6 +289,13 @@ class Gnu95FCompiler(GnuFCompiler): 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): -- cgit v1.2.1