winegcc: Use paths for found libraries on PE targets when using msvcrt.

We use -nodefaultlibs now, so we don't need to worry about GCC additions.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-04-06 00:36:29 +02:00 committed by Alexandre Julliard
parent 826be590c0
commit c7a210bc2f
1 changed files with 1 additions and 1 deletions

View File

@ -1393,7 +1393,7 @@ static void build(struct options* opts)
strarray_add(link_args, name);
break;
case 'a':
if (is_pe && !opts->lib_suffix && strchr(name, '/'))
if (is_pe && !opts->use_msvcrt && !opts->lib_suffix && strchr(name, '/'))
{
/* turn the path back into -Ldir -lfoo options
* this makes sure that we use the specified libs even