#! /bin/sh

# Try to configure a build similar to MinGW's.
#
# NOTE: update gcc-headers/ if changing the configuration.
#
../gcc/configure \
--with-pkgversion="ODB special" \
--with-bugurl="http://www.codesynthesis.com/products/odb/" \
--host i686-mingw32 \
--target i686-mingw32 \
--prefix=/mingw \
--with-sysroot=/mingw \
--with-dwarf2 \
--enable-languages=c,c++ \
--enable-shared \
--enable-threads=win32 \
--disable-libssp \
--disable-libgomp \
--disable-graphite \
--enable-version-specific-runtime-libs \
--disable-sjlj-exceptions \
--disable-nls \
--disable-multilib \
--disable-libstdcxx-pch \
--disable-libstdcxx-debug \
--disable-bootstrap \
--disable-win32-registry \
--enable-static-plugin \
--with-stage1-libs=libplugin-stub.a \
CFLAGS=-O2 CXXFLAGS=-O2 LDFLAGS=-s