From c1878316e02dce0ff10c8e81ee3fa3b6ea9bb9cb Mon Sep 17 00:00:00 2001 From: Damien Lespiau Date: Thu, 2 Dec 2010 15:41:43 +0000 Subject: [PATCH] win32: Detect the mingw32 cross compiler on Fedora Fedora mingw32 cross compiler is prefix with i686-pc-mingw32-. --- build/mingw/mingw-cross-compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}";