summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSteve Lhomme <robux4@ycbcr.xyz>2020-05-19 16:23:40 +0200
committerSteve Lhomme <robux4@ycbcr.xyz>2020-05-20 07:47:45 +0200
commit4e8145bc6d04fa0223a8108edf50bb88f76e48ba (patch)
tree31cae16523863f3bb2703e55d7bc5e7e7fec2678 /configure.ac
parenta9f907be146be0df2cc756c19543ec1d10ccdef9 (diff)
downloadgnutls-4e8145bc6d04fa0223a8108edf50bb88f76e48ba.tar.gz
win32: link with crypt32
Since 5d03564cccd2c10c41252ea468d4a098bd08e9c1 we use CertOpenStore(). To properly link it needs to be linked with the crypt32.dll. https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certopenstore This library was missing from the pkg-config library. It exists in thirdparty_libadd to link gnutls as a DLL. Signed-off-by: Steve Lhomme <robux4@ycbcr.xyz>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 2aca4b9fca..3413a3dc99 100644
--- a/configure.ac
+++ b/configure.ac
@@ -119,6 +119,8 @@ case "$host" in
*mingw32* | *mingw64*)
have_win=yes
AC_DEFINE([_UNICODE], [1], [Defined to 1 for Unicode (wide chars) APIs])
+ LIB_CRYPT32="-lcrypt32"
+ AC_SUBST([LIB_CRYPT32])
;;
*darwin*)
have_macosx=yes