makefiles: Don't try to link a library to itself.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-25 11:04:11 +02:00
parent e0e6eda692
commit d1248c8a0c
1 changed files with 6 additions and 0 deletions

View File

@ -2050,10 +2050,16 @@ static struct strarray add_unix_libraries( const struct makefile *make, struct s
const char *name = all_libs.str[i] + 2;
for (j = 0; j < subdirs.count; j++)
{
if (make == submakes[j]) continue;
if ((lib = get_static_lib( submakes[j], name ))) break;
}
if (!lib && make->native_unix_lib)
for (j = 0; j < subdirs.count; j++)
{
if (make == submakes[j]) continue;
if ((lib = get_native_unix_lib( submakes[j], name ))) break;
}
}
if (lib)