diff options
author | David Cournapeau <cournape@gmail.com> | 2008-12-16 18:53:25 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2008-12-16 18:53:25 +0000 |
commit | 0746f06c55c49b1efeecd09eaa6a4aa0ed1e146c (patch) | |
tree | abbd23b33acc0eafc7ae9da5ab0215b5eaa56755 /numpy/distutils/fcompiler/gnu.py | |
parent | eb1f98d5137ab32de9e1c4201dd0a3d0aadf9b6e (diff) | |
download | numpy-0746f06c55c49b1efeecd09eaa6a4aa0ed1e146c.tar.gz |
Add mingw32 and mingwex libraries as runtime libraries for extensions which use fortran and are built with gfortran+MS compiler.
Diffstat (limited to 'numpy/distutils/fcompiler/gnu.py')
-rw-r--r-- | numpy/distutils/fcompiler/gnu.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): |