libsimaka: Link against Winsock2 on Windows
authorMartin Willi <martin@revosec.ch>
Mon, 30 Mar 2015 09:24:47 +0000 (11:24 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 13 Apr 2015 07:31:28 +0000 (09:31 +0200)
The library makes use of htons/ntohs().

src/libsimaka/Makefile.am

index 6878133..9997ece 100644 (file)
@@ -11,6 +11,10 @@ ipseclib_LTLIBRARIES = libsimaka.la
 libsimaka_la_LIBADD = \
        $(top_builddir)/src/libstrongswan/libstrongswan.la
 
+if USE_WINDOWS
+  libsimaka_la_LIBADD += -lws2_32
+endif
+
 libsimaka_la_SOURCES = simaka_message.h simaka_message.c \
   simaka_crypto.h simaka_crypto.c simaka_manager.h simaka_manager.c \
   simaka_card.h simaka_provider.h simaka_hooks.h