MSVC: Teach find_library to consider the 'libfoo.a' naming convention
When targeting the GNU ABI, we consider .a
libraries first but also
accept .lib
. For symmetry, when targeting the MSVC ABI, we now
consider .lib
first but also accept .a
.
This adds support for meson-generated static libraries, which are
named with the pattern lib${foo}.a
.
Note that this was previously attempted by !7694 (merged) but was reverted by !7962 (merged) due to problems finding GNU ABI libraries in PATH-derived prefixes. Since then, !8802 (merged) removed the problematic search paths, so we can restore this change.
Fixes: #23975 (closed)