win32: Detect the mingw32 cross compiler on Fedora

Fedora mingw32 cross compiler is prefix with i686-pc-mingw32-.
This commit is contained in:
Damien Lespiau 2010-12-02 15:41:43 +00:00
parent e73d5b30bb
commit c1878316e0

View File

@ -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}";