libpttls: Link against ws_w32 on Windows
authorMartin Willi <martin@revosec.ch>
Wed, 8 Jan 2014 10:07:01 +0000 (11:07 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:53:05 +0000 (15:53 +0200)
src/libpttls/Makefile.am

index f2bcf44..7e67600 100644 (file)
@@ -13,6 +13,10 @@ libpttls_la_LIBADD = \
        $(top_builddir)/src/libstrongswan/libstrongswan.la \
        $(top_builddir)/src/libtls/libtls.la
 
+if USE_WINDOWS
+  libpttls_la_LIBADD += -lws2_32
+endif
+
 libpttls_la_SOURCES = pt_tls.c pt_tls.h \
        pt_tls_client.c pt_tls_client.h \
        pt_tls_server.c pt_tls_server.h \