winegcc: Check for Mingw-style .dll.a import libraries.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53918
This commit is contained in:
Alexandre Julliard 2022-12-16 15:49:00 +01:00
parent cb86bb92d2
commit 3c235e053c

View file

@ -138,7 +138,15 @@ static file_type guess_lib_type(struct target target, const char* dir,
if ((*file = try_lib_path(dir, "", prefix, library, ".def", file_def)))
return file_dll;
}
else arch_dir = get_arch_dir( target );
else
{
arch_dir = get_arch_dir( target );
if (!strcmp( suffix, ".a" )) /* try Mingw-style .dll.a import lib */
{
if ((*file = try_lib_path(dir, arch_dir, prefix, library, ".dll.a", file_arh)))
return file_arh;
}
}
/* static archives */
if ((*file = try_lib_path(dir, arch_dir, prefix, library, suffix, file_arh)))