I have C/C++ program with an autoconf-based build system. It compiles for Windows just fine on Fedora (FC36) using the command mingw64-configure
to configure the autoconf system.
Ubuntu's mingw64 system appears less well developed than Fedora's. It has lots of mingw64 packages, but I can't figure out how to get it to compile. I've tried various --host
incantations but that frequently doesn't work: I get errors that libraries are not installed.
So what is the correct ./configure
command to get MinGW to compile on Ubuntu?
It appears that the answer is:
./configure --host=x86_64-w64-mingw32
See What's the difference of "./configure" option "--build", "--host" and "--target"?