]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Link to -lws2_32 if needed.
authorSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 08:02:11 +0000 (10:02 +0200)
committerSimon Josefsson <simon@josefsson.org>
Fri, 18 Apr 2008 08:02:11 +0000 (10:02 +0200)
lib/Makefile.am

index 3a5274fe761c7ff8ae28619e77c359ecf9c3d07b..660782c5767c2899e77224e06cdce32b2de146fb 100644 (file)
@@ -116,6 +116,10 @@ libgnutls_la_LDFLAGS = -no-undefined \
 libgnutls_la_LIBADD = ../lgl/liblgnu.la x509/libgnutls_x509.la \
        @LTLIBZ@ $(LIBGCRYPT_LIBS) @LTLIBINTL@
 
+if NEED_WS2_32
+libgnutls_la_LIBADD += -lws2_32
+endif
+
 if ENABLE_OPENPGP
 libgnutls_la_SOURCES += gnutls_openpgp.c
 libgnutls_la_LIBADD += openpgp/libgnutls_openpgp.la