From 34054198fede73e43c834fe5f031b2637fbd166d Mon Sep 17 00:00:00 2001 From: Michael Biebl Date: Wed, 11 Jun 2008 16:35:34 +0200 Subject: Fix linker flags for librsyslog and rsyslogd Use $(dl_libs) and $(rt_libs) instead of -ldl and -lrt. This ensures that rsyslog can be successfully built on *BSD. Don't like rsyslogd against $(dl_libs) and $(rt_libs) anymore. This functionality is now in librsyslog. Signed-off-by: Rainer Gerhards --- runtime/Makefile.am | 2 +- tools/Makefile.am | 2 +- 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) -- cgit