From e44155156a1bdaa62c19397f45302b389779061c Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Thu, 9 Apr 2015 03:31:00 +0200 Subject: [PATCH] lib/makefile.m32: add missing libs to build libcurl.dll Add 'gdi32' and 'crypt32' Windows implibs to avoid failure while building libcurl.dll using the mingw compiler. The same logic is used in 'src/makefile.m32' when building curl.exe. --- lib/Makefile.m32 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Makefile.m32 b/lib/Makefile.m32 index 7653e0d8a..7506a01a2 100644 --- a/lib/Makefile.m32 +++ b/lib/Makefile.m32 @@ -214,6 +214,9 @@ ifdef SSL OPENSSL_LIBS = -lcrypto -lssl endif endif + ifndef DYN + OPENSSL_LIBS += -lgdi32 -lcrypt32 + endif INCLUDES += -I"$(OPENSSL_INCLUDE)" CFLAGS += -DUSE_OPENSSL -DHAVE_OPENSSL_ENGINE_H -DHAVE_OPENSSL_PKCS12_H \ -DHAVE_ENGINE_LOAD_BUILTIN_ENGINES -DOPENSSL_NO_KRB5 \