Code

src/Makefile.am: Define `PREFIX' for the unixsock plugin.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Apr 2007 05:43:07 +0000 (07:43 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Mon, 23 Apr 2007 05:43:07 +0000 (07:43 +0200)
src/Makefile.am

index 72d67b3be3c0410015048ef75c409009b0a3979d..a230283277665bda2465ad9133860aa8ca262f9a 100644 (file)
@@ -509,10 +509,8 @@ endif
 if BUILD_MODULE_UNIXSOCK
 pkglib_LTLIBRARIES += unixsock.la
 unixsock_la_SOURCES = unixsock.c
-unixsock_la_LDFLAGS = -module -avoid-version
-if BUILD_WITH_LIBPTHREAD
-unixsock_la_LDFLAGS += -lpthread
-endif
+unixsock_la_CPPFLAGS = -DPREFIX='"${prefix}"'
+unixsock_la_LDFLAGS = -module -avoid-version -lpthread
 collectd_LDADD += "-dlopen" unixsock.la
 collectd_DEPENDENCIES += unixsock.la
 endif