From: Sven M. Hallberg Date: Wed, 27 Aug 2014 11:48:53 +0000 (+0200) Subject: link the library with -lws2_32 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d5d454e164159387fefb107bf971503715cc9b9e;p=catta link the library with -lws2_32 --- diff --git a/src/Makefile.am b/src/Makefile.am index b378862..68db4a1 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -84,12 +84,14 @@ libcatta_la_SOURCES += \ endif endif +libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) +libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) +libcatta_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBCATTA_VERSION_INFO) + if WINDOWS libcatta_la_SOURCES += \ compat/windows/wincompat.c \ compat/windows/wincompat.h +libcatta_la_LIBADD += -lws2_32 endif -libcatta_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) -libcatta_la_LIBADD = $(AM_LDADD) $(PTHREAD_CFLAGS) $(PTHREAD_LIBS) $(INTLLIBS) -libcatta_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBCATTA_VERSION_INFO)