From cb655b4e7d23bd991cc18357eb3f0cb818851610 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 14 Jun 2024 22:29:29 +0200 Subject: [PATCH] win32, msvc: fix missing linking against Bcrypt.lib Fixes this link error: dict.obj : error LNK2019: unresolved external symbol BCryptGenRandom referenced in function xmlInitRandom Commit 2e9e758d1ecb52b73a43db79d326c18d7d94c8d7 (dict: Get random seed from system PRNG, 2023-12-24) updated cmake, but not nmake, correct this. --- win32/Makefile.msvc | 1 + 1 file changed, 1 insertion(+) diff --git a/win32/Makefile.msvc b/win32/Makefile.msvc index ce877a5e..e1c217b1 100644 --- a/win32/Makefile.msvc +++ b/win32/Makefile.msvc @@ -81,6 +81,7 @@ LIBS = $(LIBS) pthreadVC.lib !if "$(WITH_MODULES)" == "1" LIBS = $(LIBS) kernel32.lib !endif +LIBS = $(LIBS) Bcrypt.lib # The archiver and its options. AR = lib.exe