GHC on Windows has hardcoded libtool path.
The GHC Windows bindists are shipping with a hardcoded
That's also not even the right libtool to use. The one that should be used is the
If libtool is now required as part of the compiler it should be included in the packaging.
http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-libtool-2.4.6-15-any.pkg.tar.xz needs to be added to packages
and it needs to be patched for long paths.
The remaining settings for
opt are bogus too, but happen to work out because the machine configuring the Windows builds