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

index 22a3b93..7a630fe 100644 (file)
@@ -12,6 +12,10 @@ libtnccs_la_LIBADD = \
        $(top_builddir)/src/libstrongswan/libstrongswan.la \
        $(top_builddir)/src/libtncif/libtncif.la
 
+if USE_WINDOWS
+  libtnccs_la_LIBADD += -lws2_32
+endif
+
 libtnccs_la_SOURCES = \
 tnc/tnc.h tnc/tnc.c \
 tnc/imc/imc.h tnc/imc/imc_manager.h \
@@ -72,5 +76,3 @@ if MONOLITHIC
   libtnccs_la_LIBADD += plugins/tnccs_dynamic/libstrongswan-tnccs-dynamic.la
 endif
 endif
-
-