From: Simon Josefsson Date: Fri, 18 Apr 2008 08:02:11 +0000 (+0200) Subject: Link to -lws2_32 if needed. X-Git-Tag: gnutls_2_3_7~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6f5e7321eed3bc7071327ad72adc97e2f2debfe;p=thirdparty%2Fgnutls.git Link to -lws2_32 if needed. --- diff --git a/lib/Makefile.am b/lib/Makefile.am index 3a5274fe76..660782c576 100644 --- a/lib/Makefile.am +++ b/lib/Makefile.am @@ -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