windows: Link libstrongswan against ws2_32.dll
authorMartin Willi <martin@revosec.ch>
Fri, 11 Oct 2013 16:03:47 +0000 (18:03 +0200)
committerMartin Willi <martin@revosec.ch>
Wed, 4 Jun 2014 13:52:57 +0000 (15:52 +0200)
src/libstrongswan/Makefile.am

index 6816292..180d27a 100644 (file)
@@ -110,6 +110,10 @@ AM_LDFLAGS = \
 
 AM_YFLAGS = -v -d
 
+if USE_WINDOWS
+  libstrongswan_la_LIBADD += -lws2_32
+endif
+
 if USE_LEAK_DETECTIVE
   AM_CPPFLAGS += -DLEAK_DETECTIVE
   libstrongswan_la_SOURCES += utils/leak_detective.c