From 55ab64ed1a0472f70a466d5b53c317992c0640c0 Mon Sep 17 00:00:00 2001
From: Viktor Szakats <vszakats@users.noreply.github.com>
Date: Wed, 1 Jun 2016 10:35:38 +0200
Subject: [PATCH] makefile.m32: add crypt32 for winssl builds

Dependency added by 6cabd78

Closes #849
---
 lib/Makefile.m32 | 4 ++++
 src/Makefile.m32 | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 2142bfc42d..522dbd1df7 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -258,6 +258,10 @@ ifdef SSL
       CFLAGS += -DHAVE_OPENSSL_SRP -DUSE_TLS_SRP
     endif
   endif
+else
+ifdef WINSSL
+  DLL_LIBS += -lcrypt32
+endif
 endif
 ifdef ZLIB
   INCLUDES += -I"$(ZLIB_PATH)"
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index 076fc5e351..40852e5730 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -274,6 +274,10 @@ ifdef SSL
   INCLUDES += -I"$(OPENSSL_INCLUDE)"
   CFLAGS += -DUSE_OPENSSL
   curl_LDADD += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS)
+else
+ifdef WINSSL
+  curl_LDADD += -lcrypt32
+endif
 endif
 ifdef ZLIB
   INCLUDES += -I"$(ZLIB_PATH)"
-- 
GitLab