libmsi.dll.a collides with MinGW-w64's libmsi.a
On Msys2, msitools can be build and installed with the mingw-w64 compiler. msitools installs the /mingw64/libmsi.dll.a
import library, but in Msys2, there is /mingw64/libmsi.a
already present, which is the import library for the Microsoft Windows msi.dll
library API.
This is particularly problematic because CustomAction DLL developers need to be able to link Windows msi.dll
, so if we try and build one with MingW GCC, we might invoke it with the command: x86_64-w64-mingw32-gcc ... -lmsi
. However, this would cause GCC to incorrectly attempt to link against msitools libmsi, instead of Windows msi.dll
.
Perhaps libmsi should be given a new name?