winegcc: Make the WINEBUILD variable take precedence over the bin directory.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2020-02-06 21:12:25 +01:00
parent f504135e38
commit d96a0acf29
1 changed files with 3 additions and 1 deletions

View File

@ -865,10 +865,12 @@ static strarray *get_winebuild_args(struct options *opts)
binary = opts->winebuild;
else if (opts->wine_objdir)
binary = strmake( "%s/tools/winebuild/winebuild%s", opts->wine_objdir, EXEEXT );
else if (winebuild)
binary = find_binary( opts->prefix, winebuild );
else if (bindir)
binary = strmake( "%s/winebuild%s", bindir, EXEEXT );
else
binary = find_binary( opts->prefix, winebuild ? winebuild : "winebuild" );
binary = find_binary( opts->prefix, "winebuild" );
strarray_add( spec_args, binary );
if (verbose) strarray_add( spec_args, "-v" );
if (keep_generated) strarray_add( spec_args, "--save-temps" );