summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authoryuangongji <82787816@qq.com>2019-10-08 21:38:58 +0800
committeryuangongji <82787816@qq.com>2019-10-08 21:38:58 +0800
commit78b5bca6d83a70a0b9dfc438898d5c1908cc3c2a (patch)
treed9aba586b17a49074a80c7a521f6fd207f36d965 /sample
parentc328999e5d1f7004f6f83b3c8e93005b79042822 (diff)
downloadlibevent-78b5bca6d83a70a0b9dfc438898d5c1908cc3c2a.tar.gz
sample/https-client: link crypt32 explicitly when build with mingw-w64
Diffstat (limited to 'sample')
-rw-r--r--sample/include.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/include.am b/sample/include.am
index 0343a24a..301787db 100644
--- a/sample/include.am
+++ b/sample/include.am
@@ -31,6 +31,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 \