win32: Detect the mingw32 cross compiler on Fedora
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 2 Dec 2010 15:41:43 +0000 (15:41 +0000)
committerDamien Lespiau <damien.lespiau@intel.com>
Thu, 2 Dec 2010 16:54:41 +0000 (16:54 +0000)
Fedora mingw32 cross compiler is prefix with i686-pc-mingw32-.

build/mingw/mingw-cross-compile.sh

index dc85652..fd095c2 100755 (executable)
@@ -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}";