Code

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 14bd3ed620dbd4267d5e706dd5013265823eec75..8958aedc6d96e186a5dab790e3feaa9f6d53eba2 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