#! /bin/sh # Try to configure a build similar to MinGW-W64's. # # NOTE: update gcc-headers/ if changing the configuration. # ../gcc/configure \ --host i686-w64-mingw32 \ --target i686-w64-mingw32 \ --prefix=/mingw \ --with-sysroot=/mingw \ --enable-languages=c,c++ \ --enable-shared \ --enable-threads=posix \ --disable-libssp \ --disable-libgomp \ --disable-graphite \ --enable-targets=all \ --enable-multilib \ --with-arch-32=i686 \ --with-arch-64=nocona \ --with-tune-32=generic \ --with-tune-64=core2 \ --enable-libstdcxx-time \ --enable-fully-dynamic-string \ --disable-dw2-exceptions \ --enable-sjlj-exceptions \ --disable-libstdcxx-pch \ --disable-libstdcxx-debug \ --disable-rpath \ --disable-win32-registry \ --disable-nls \ --disable-werror \ --with-pkgversion="ODB special" \ --with-bugurl="http://www.codesynthesis.com/products/odb/" \ --enable-static-plugin \ --with-stage1-libs="libplugin-stub.a -lstdc++" \ CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS="-s -static-libgcc"