#! /bin/sh

../odb/configure \
--disable-shared \
--enable-static \
--host i686-mingw32 \
--target i686-mingw32 \
--prefix=/tmp/odb-$1-i686-windows \
--with-libcutl=../libcutl \
--with-gxx-name='..\\mingw\\bin\\g++.exe' \
--with-options-file='..\\etc\\odb\\default.options' \
CPPFLAGS=-I`pwd`/../cross/mingw/include/plugin \
CXXFLAGS="-O2 -W -Wall" \
LDFLAGS=-static-libgcc