winegcc: Pass all option flags to winebuild before non-options filenames.

This commit is contained in:
Alexandre Julliard 2009-06-29 13:13:25 +02:00
parent 683dc30e82
commit 56a92c25b6
1 changed files with 7 additions and 5 deletions

View File

@ -830,18 +830,20 @@ static void build(struct options* opts)
for ( j = 0 ; j < opts->winebuild_args->size ; j++ ) for ( j = 0 ; j < opts->winebuild_args->size ; j++ )
strarray_add(spec_args, opts->winebuild_args->base[j]); strarray_add(spec_args, opts->winebuild_args->base[j]);
/* add resource files */
for ( j = 0; j < files->size; j++ )
if (files->base[j][1] == 'r') strarray_add(spec_args, files->base[j]);
/* add other files */
strarray_add(spec_args, "--");
for ( j = 0; j < files->size; j++ ) for ( j = 0; j < files->size; j++ )
{ {
const char* name = files->base[j] + 2;
switch(files->base[j][1]) switch(files->base[j][1])
{ {
case 'r':
strarray_add(spec_args, files->base[j]);
break;
case 'd': case 'd':
case 'a': case 'a':
case 'o': case 'o':
strarray_add(spec_args, name); strarray_add(spec_args, files->base[j] + 2);
break; break;
} }
} }