[syslog-ng] [PATCH (3.4)] afsmtp: Fix the module linkage

Gergely Nagy algernon at balabit.hu
Fri Aug 17 10:34:09 CEST 2012


Use $(MODULE_DEPS_LIBS) and $(MODULE_LDFLAGS) instead of trying to
grab all the libs.

Signed-off-by: Gergely Nagy <algernon at balabit.hu>
---
 modules/afsmtp/Makefile.am |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/afsmtp/Makefile.am b/modules/afsmtp/Makefile.am
index bb5b94d..34c0e98 100644
--- a/modules/afsmtp/Makefile.am
+++ b/modules/afsmtp/Makefile.am
@@ -6,10 +6,10 @@ export top_srcdir
 if ENABLE_SMTP
 module_LTLIBRARIES = libafsmtp.la
 
-libafsmtp_la_CFLAGS = $(LIBESMTP_CFLAGS) $(IVYKIS_CFLAGS) $(EVENTLOG_CFLAGS) $(SYSLOG_NG_CFLAGS)
+libafsmtp_la_CFLAGS = $(LIBESMTP_CFLAGS)
 libafsmtp_la_SOURCES = afsmtp-grammar.y afsmtp.c afsmtp.h afsmtp-parser.c afsmtp-parser.h
-libafsmtp_la_LIBADD = $(LIBESMTP_LIBS) $(IVYKIS_LIBS) $(EVENTLOG_LIBS) $(SYSLOG_NG_LIBS)
-libafsmtp_la_LDFLAGS = -avoid-version
+libafsmtp_la_LIBADD = $(LIBESMTP_LIBS) $(MODULE_DEPS_LIBS)
+libafsmtp_la_LDFLAGS = $(MODULE_LDFLAGS)
 
 endif
 
-- 
1.7.10.4




More information about the syslog-ng mailing list