diff --git a/build/mingw/mingw-cross-compile.sh b/build/mingw/mingw-cross-compile.sh index dc8565257..fd095c2af 100755 --- a/build/mingw/mingw-cross-compile.sh +++ b/build/mingw/mingw-cross-compile.sh @@ -123,7 +123,7 @@ function find_compiler () local gccbin fullpath; if [ -z "$MINGW_TOOL_PREFIX" ]; then - for gccbin in i{3,4,5,6}86-mingw32{,msvc}-gcc; do + for gccbin in i{3,4,5,6}86{-pc,}-mingw32{,msvc}-gcc; do fullpath="`which $gccbin 2>/dev/null`"; if [ "$?" -eq 0 ]; then MINGW_TOOL_PREFIX="${fullpath%%gcc}";