Home | History | Annotate | Line # | Download | only in dist
      1 Installation on Woe32 (WinNT/2000/XP, Win95/98/ME):
      2 
      3 This file explains how to create binaries for the mingw execution environment.
      4 For how to create binaries for the cygwin environment, please see the normal
      5 INSTALL file.  MS Visual C/C++ with "nmake" is no longer supported.
      6 
      7 I recommend to use the cygwin environment as the development environment
      8 and mingw only as the target (runtime, deployment) environment.
      9 For this, you need to install
     10   - cygwin,
     11   - the mingw runtime package, also from the cygwin site.
     12 
     13 You must not install cygwin programs directly under /usr/local -
     14 because the mingw compiler and linker would pick up the include files
     15 and libraries from there, thus introducing an undesired dependency to
     16 cygwin. You can for example achieve this by using the
     17 configure option --prefix=/usr/local/cygwin each time you build a
     18 program for cygwin.
     19 
     20 Building for mingw is then achieved through the following configure
     21 command:
     22 
     23    CPPFLAGS="-mno-cygwin -Wall -I/usr/local/mingw/include" \
     24    CFLAGS="-mno-cygwin -O2 -g" \
     25    CXXFLAGS="-mno-cygwin -O2 -g" \
     26    LDFLAGS="-mno-cygwin -L/usr/local/mingw/lib" \
     27    ./configure --host=i586-pc-mingw32 --prefix=/usr/local/mingw
     28 
     29 The -mno-cygwin tells the cygwin compiler and linker to build for mingw.
     30 The -I and -L option are so that packages previously built for the
     31 same environment are found. The --host option tells the various
     32 tools that you are building for mingw, not cygwin.
     33