winegcc: Examine each argument of compile command rather than only the first.

This commit is contained in:
Juan Lang 2009-10-09 10:14:52 -07:00 committed by Alexandre Julliard
parent 7e7ed92b5d
commit 3e30306bb3
1 changed files with 6 additions and 1 deletions

View File

@ -320,7 +320,12 @@ static void compile(struct options* opts, const char* lang)
/* mixing different C and C++ compilers isn't supported in configure anyway */
case proc_cc:
case proc_cxx:
gcc_defs = strendswith(comp_args->base[0], "gcc") || strendswith(comp_args->base[0], "g++");
for ( j = 0; !gcc_defs && j < comp_args->size; j++ )
{
const char *cc = comp_args->base[j];
gcc_defs = strendswith(cc, "gcc") || strendswith(cc, "g++");
}
break;
}