From d5d454e164159387fefb107bf971503715cc9b9e Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Wed, 27 Aug 2014 13:48:53 +0200 Subject: [PATCH] link the library with -lws2_32 --- src/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) -- 2.39.5