# Note: putting -static-libgcc in CC is a workaround for libtool
# stripping it:
# http://www.gnu.org/software/libtool/manual/libtool.html#Stripped-link-flags
./configure --host=${ARCH}-w64-mingw32 --disable-static \
CC="${ARCH}-w64-mingw32-gcc -static-libgcc" \
CFLAGS="-O2 -Wall" \
# Note: putting -static-libgcc in CC is a workaround for libtool
# stripping it:
# http://www.gnu.org/software/libtool/manual/libtool.html#Stripped-link-flags
./configure --host=${ARCH}-w64-mingw32 --disable-static \
CC="${ARCH}-w64-mingw32-gcc -static-libgcc" \
CFLAGS="-O2 -Wall" \