winegcc: Support building from the top directory.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-03-31 14:34:46 +09:00
parent 984934f685
commit 2b525db8a2
1 changed files with 5 additions and 0 deletions

View File

@ -1464,6 +1464,11 @@ int main(int argc, char **argv)
/* don't pass it to the compiler, this generates warnings */
raw_compiler_arg = raw_linker_arg = 0;
}
else if (!strcmp(str, "tools/winebuild"))
{
opts.wine_objdir = ".";
raw_compiler_arg = raw_linker_arg = 0;
}
if (!opts.prefix) opts.prefix = strarray_alloc();
strarray_add(opts.prefix, str);
break;