summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/Makefile.am2
-rw-r--r--tools/Makefile.am2
2 files changed, 2 insertions, 2 deletions
diff --git a/runtime/Makefile.am b/runtime/Makefile.am
index 4a72eed8..79783bd6 100644
--- a/runtime/Makefile.am
+++ b/runtime/Makefile.am
@@ -67,7 +67,7 @@ librsyslog_la_SOURCES = \
librsyslog_la_CPPFLAGS = -D_PATH_MODDIR=\"$(pkglibdir)/\" -I$(top_srcdir) $(pthreads_cflags)
#librsyslog_la_LDFLAGS = -module -avoid-version
-librsyslog_la_LIBADD = -ldl -lrt
+librsyslog_la_LIBADD = $(dl_libs) $(rt_libs)
#
# regular expression support
diff --git a/tools/Makefile.am b/tools/Makefile.am
index 7fe420b0..1eb017d4 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -38,7 +38,7 @@ rsyslogd_SOURCES = \
../conf.h
rsyslogd_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
-rsyslogd_LDADD = $(zlib_libs) $(pthreads_libs) $(dl_libs) $(rt_libs) $(rsrt_libs)
+rsyslogd_LDADD = $(zlib_libs) $(pthreads_libs) $(rsrt_libs)
rsyslogd_LDFLAGS = -export-dynamic
EXTRA_DIST = $(man_MANS)