Link liboping with `libsocket' if it's needed for `socket' to work.
authorocto <octo>
Fri, 21 Apr 2006 15:27:54 +0000 (15:27 +0000)
committerocto <octo>
Fri, 21 Apr 2006 15:27:54 +0000 (15:27 +0000)
src/liboping/Makefile.am

index 14bd3ed..8958aed 100644 (file)
@@ -8,4 +8,7 @@ noinst_LTLIBRARIES = liboping.la
 
 #liboping_la_CFLAGS = 
 liboping_la_LDFLAGS = -avoid-version
+if BUILD_WITH_LIBSOCKET
+liboping_la_LDFLAGS += -lsocket
+endif
 liboping_la_SOURCES = liboping.h liboping.c