[mingw2] Turn optimization flag on
diff --git a/mingw-configure.sh b/mingw-configure.sh
index 2fe3a09..496cae2 100755
--- a/mingw-configure.sh
+++ b/mingw-configure.sh
@@ -17,7 +17,7 @@
 	CPP= \
 	LD= \
 	CFLAGS="-static-libgcc" \
-	CXXFLAGS="-static-libgcc -static-libstdc++" \
+	CXXFLAGS="-O2 -static-libgcc -static-libstdc++" \
 	CPPFLAGS="-I$HOME/.local/$target/include" \
 	LDFLAGS=-L$HOME/.local/$target/lib \
 	PKG_CONFIG_LIBDIR=$HOME/.local/$target/lib/pkgconfig:/usr/$target/sys-root/mingw/lib/pkgconfig/ \