sample/https-client: link crypt32 explicitly when build with mingw-w64

(cherry picked from commit 78b5bca6d83a70a0b9dfc438898d5c1908cc3c2a)
This commit is contained in:
yuangongji 2019-10-08 21:38:58 +08:00 committed by Azat Khuzhin
parent 5febb4e191
commit e35e02e680

View File

@ -25,6 +25,9 @@ sample_https_client_SOURCES = \
sample/hostcheck.c \
sample/openssl_hostname_validation.c
sample_https_client_LDADD = libevent.la libevent_openssl.la $(OPENSSL_LIBS) $(OPENSSL_LIBADD)
if BUILD_WIN32
sample_https_client_LDADD += -lcrypt32
endif
sample_https_client_CPPFLAGS = $(AM_CPPFLAGS) $(OPENSSL_INCS)
noinst_HEADERS += \
sample/hostcheck.h \