FindODBC: Add library name for MinGW toolchains

Fix MINGW 8.1.0 case where it would find c:\Windows\system32\odbc.dll as library. As it turns out ld would ignore it, but Clang's lld would complain linking to a dll file.

Fixes: #20018 (closed)
Backport: release
Topic-rename: FindODBC-mingw

Edited by Brad King

Merge request reports

Loading