winegcc: Pass only raw compiler and linker arguments in forward mode.
Fixes use case like: CC=winegcc -b i686-w64-mingw32 $CC --version Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c84e416d23
commit
e9de7761cd
@ -1462,13 +1462,10 @@ static void build(struct options* opts)
|
||||
static void forward(int argc, char **argv, struct options* opts)
|
||||
{
|
||||
strarray* args = strarray_alloc();
|
||||
int j;
|
||||
|
||||
strarray_addall(args, get_translator(opts));
|
||||
|
||||
for( j = 1; j < argc; j++ )
|
||||
strarray_add(args, argv[j]);
|
||||
|
||||
strarray_addall(args, opts->compiler_args);
|
||||
strarray_addall(args, opts->linker_args);
|
||||
spawn(opts->prefix, args, 0);
|
||||
strarray_free (args);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user