winegcc: Use explicit library file name when loading cross libraries.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-03-28 12:18:59 +09:00
parent 444025d7fb
commit 33147c9475

View file

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