THRIFT-2565 autoconf fails to find mingw-g++ cross compiler on travis CI
diff --git a/contrib/mingw-cross-compile.sh b/contrib/mingw-cross-compile.sh
index 54cd852..7ed5d47 100755
--- a/contrib/mingw-cross-compile.sh
+++ b/contrib/mingw-cross-compile.sh
@@ -4,7 +4,8 @@
 ./configure \
   --disable-libs \
   --build=i686-pc-linux-gnu \
-  --host=i586-mingw32msvc
+  --host=i586-mingw32msvc \
+  CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++
 
 make