Seungweon's Blog

in Portland, Oregon

MinGW cross compiler for Linux build environment

Page updated to current status, as of January/03/2009.

Note:
As of this writing, the MinGW Project does not support any official build of GCC, more recent than GCC-3.4.5, for use as a cross hosted MinGW development tool, on any platform.
Procedure for Building the Cross Compiler

The only method now officially sanctioned by the MinGW Project, for building MinGW as a cross hosted tool chain, is managed entirely by a collection of interactive shell scripts, which you may download as a composite tarball, from here.

Having downloaded the script tarball, you should unpack it, study the included README file, review and optionally adjust the default settings specified in x86-mingw32-build.sh.conf, then run the main script

sh x86-mingw32-build.sh


(where represents the label you would like to use in the --host= specification, when you configure packages for cross compilation; please ensure that it ends with mingw32, and do not emulate the asinine practice of GNU/Linux distributors, by appending msvc).

From here on, simply follow the on-screen prompts, to complete the build and installation process.


0 comments:

Post a Comment