numpy/numpy — pull request #4021 by bbudescu (2013-11-07 10:24:43+00:00)
Title: Improve MinGW-w64 compatibility on 64-bit Windows.

- encountered missing symbol (from gfortran.dll) problems when installing scipy; this seems to fix them
- the "gfortran.dll" in get_libraries will trigger linking to libgfortran.dll.a in mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64\lib\gcc\x86_64-w64-mingw32\4.8.1\ which I think is the static IMPORT library for libgfortran-3.dll from mingw-builds\x64-4.8.1-posix-seh-rev5\mingw64\bin\
- if we instead link to the static version (i.e. by replacing 'gfortran.dll' by 'gfortran' in gnu,py, thus linking with libgfortran.a instead of libgfortran.dll.a) we'll also have to import for some packages (like scipy.integrate.quadpack) other runtime libraries like mingwex, gcc, gcc_s and, most importantly to mingw32, which contains symbols that conflict with msvcrt