Skip to content

Commit

Permalink
sample/https-client: link crypt32 explicitly when build with mingw-w64
Browse files Browse the repository at this point in the history
  • Loading branch information
yuangongji committed Oct 8, 2019
1 parent c328999 commit 78b5bca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sample/include.am
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 78b5bca

Please sign in to comment.