]> git.meshlink.io Git - catta/commitdiff
link the library with -lws2_32
authorSven M. Hallberg <pesco@khjk.org>
Wed, 27 Aug 2014 11:48:53 +0000 (13:48 +0200)
committerSven M. Hallberg <pesco@khjk.org>
Wed, 27 Aug 2014 11:48:53 +0000 (13:48 +0200)
src/Makefile.am

index b37886270b68347eea37f30f3ebdd1b01678679e..68db4a1e36be964c9ba10ce0cf2c013f37335266 100644 (file)
@@ -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)