diff --git a/src/Makefile.am b/src/Makefile.am
index 9e9b4660cf875b5f602b9bcbee88f5188dc68ff3..6e7e339574387329a05bfdc5ac5c0ea8ae53940d 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
if BUILD_MODULE_DNS
pkglib_LTLIBRARIES += dns.la
if BUILD_MODULE_DNS
pkglib_LTLIBRARIES += dns.la
-dns_la_SOURCES = dns.c utils_dns.c
+dns_la_SOURCES = dns.c utils_dns.c utils_dns.h
dns_la_LDFLAGS = -module -avoid-version
if BUILD_WITH_LIBPCAP
dns_la_LDFLAGS += -lpcap
dns_la_LDFLAGS = -module -avoid-version
if BUILD_WITH_LIBPCAP
dns_la_LDFLAGS += -lpcap
if BUILD_MODULE_EMAIL
pkglib_LTLIBRARIES += email.la
email_la_SOURCES = email.c
if BUILD_MODULE_EMAIL
pkglib_LTLIBRARIES += email.la
email_la_SOURCES = email.c
-email_la_LDFLAGS = -module -avoid-version -lpthread
+email_la_LDFLAGS = -module -avoid-version
+if BUILD_WITH_LIBPTHREAD
+email_la_LDFLAGS += -lpthread
+endif
collectd_LDADD += "-dlopen" email.la
collectd_DEPENDENCIES += email.la
endif
collectd_LDADD += "-dlopen" email.la
collectd_DEPENDENCIES += email.la
endif