Building for mingw is then achieved through the following configure
command:
- CPPFLAGS="-mno-cygwin -Wall -I/usr/local/mingw/include" \
- CFLAGS="-mno-cygwin -O2 -g" \
- CXXFLAGS="-mno-cygwin -O2 -g" \
- LDFLAGS="-mno-cygwin -L/usr/local/mingw/lib" \
- ./configure --host=i586-pc-mingw32 --prefix=/usr/local/mingw
+ ./configure --host=i586-pc-mingw32 --prefix=/usr/local/mingw \
+ CPPFLAGS="-mno-cygwin -Wall -I/usr/local/mingw/include" \
+ CFLAGS="-mno-cygwin -O2 -g" \
+ CXXFLAGS="-mno-cygwin -O2 -g" \
+ LDFLAGS="-mno-cygwin -L/usr/local/mingw/lib"
The -mno-cygwin tells the cygwin compiler and linker to build for mingw.
The -I and -L option are so that packages previously built for the