Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux/mingw64 (cross-compiler) fortran #14

Closed
ForsteriteFoe opened this issue May 4, 2017 · 1 comment
Closed

Linux/mingw64 (cross-compiler) fortran #14

ForsteriteFoe opened this issue May 4, 2017 · 1 comment

Comments

@ForsteriteFoe
Copy link

Please find attached a hacked version of the pymake.py file to use the mingw64 toolchain for compiling a windows x64.exe version of MODFLOW using Linux. Here is the general reference for how the mingw64 gfortran differs from standard gfortran (it also has options for the 32-bit versions):

https://sourceforge.net/p/mingw-w64/wiki2/UsingLinuxBinaries/#using-the-cross-compilers-to-generate-windows-32-bit-and-64-bit-binary-executables

Basically, in addition to the prefix for both the gfortran and gcc, in the linker phase needs the -static option, as well as replace the -lc option with either -m64 or -m32.

Don't currently have a clean patch for you.

pymake_w64.py.txt

@ForsteriteFoe
Copy link
Author

I'll see if sometime after work, I can put this all together in a nice clean package that is less of a hack. Probably won't get to this for a week or two.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants