diff --git a/src/Makefile.am b/src/Makefile.am
index 0bec7ab7c83494056f093797d4342e78e0253dfe..c24e73802257fac2406926ec2ebc26a15e9ab0a9 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
pkglib_LTLIBRARIES += notify_email.la
notify_email_la_SOURCES = notify_email.c
notify_email_la_LDFLAGS = -module -avoid-version
-notify_email_la_LIBADD = -lesmtp -lssl -lcrypto -lpthread -ldl
+notify_email_la_LIBADD = -lesmtp -lssl -lcrypto -lpthread
collectd_LDADD += "-dlopen" notify_email.la
collectd_DEPENDENCIES += notify_email.la
endif
endif
perl_la_LDFLAGS = -module -avoid-version \
$(PERL_LDFLAGS)
+perl_la_LIBADD = $(PERL_LIBS)
collectd_LDADD += "-dlopen" perl.la
collectd_DEPENDENCIES += perl.la
endif