exportLDFLAGS="-static-libgcc -static-libstdc++ -no-pthread -Wl,--allow-multiple-definition"# workaround some other mingw bugs
exportWINRC="i686-w64-mingw32-windres"
rm -rf build # clean build directory
./waf configure --sdl2=$TRAVIS_BUILD_DIR/SDL2_mingw/i686-w64-mingw32/ --disable-vgui --build-type=debug --verbose|| die # can't compile VGUI support on MinGW, due to differnet C++ ABI
./waf build --verbose|| die
./waf configure -s "SDL2_mingw/i686-w64-mingw32/" --build-type=none --prefix="." --win-style-install -v|| die # can't compile VGUI support on MinGW, due to differnet C++ ABI