I have a small open source program that builds with an autoconf configure script.
I ran configure I tried to compile with:
make CC="/opt/local/bin/i386-mingw32-g++"
That didn’t work because the configure script found include files that were not available to the mingw system.
So then I tried:
./configure CC="/opt/local/bin/i386-mingw32-g++"
Is that the right way to do it?
You want:
./configure –host=i686-pc-mingw32
…which tells configure that you want to target a different platform. Provided your cross-compile environment is setup correctly i.e. you have an “i686-pc-mingw32-gcc” in your path, it should all just work.