build: Link to libbcrypt on Windows

This fixes a linker issue now that the minimum Windows version is
Windows 7, and dependencies now try to use BCryptGenRandom.
This commit is contained in:
Jack Grigg 2021-06-05 15:33:41 +01:00
parent 5bac61119a
commit 8943abd937
1 changed files with 1 additions and 0 deletions

View File

@ -389,6 +389,7 @@ case $host in
AC_CHECK_LIB([shlwapi], [PathRemoveFileSpecW],, AC_MSG_ERROR(libshlwapi missing))
AC_CHECK_LIB([iphlpapi], [GetAdaptersAddresses],, AC_MSG_ERROR(libiphlpapi missing))
AC_CHECK_LIB([ntdll], [main],, AC_MSG_ERROR(libntdll missing))
AC_CHECK_LIB([bcrypt], [main],, AC_MSG_ERROR(libbcrypt missing))
dnl -static is interpreted by libtool, where it has a different meaning.
dnl In libtool-speak, it's -all-static.