void-packages/srcpkgs/rsyslog/patches/librsyslog_link_to_libz.diff

15 lines
821 B
Diff

librsyslog needs to be linked to libz, because parser.c uses uncompress()
unconditionally and zlib is not linked in.
--- runtime/Makefile.in.orig 2010-11-02 07:17:30.000000000 +0100
+++ runtime/Makefile.in 2010-11-02 07:17:54.000000000 +0100
@@ -482,7 +482,7 @@ librsyslog_la_SOURCES = \
# runtime or will no longer be needed. -- rgerhards, 2008-06-13
@WITH_MODDIRS_TRUE@librsyslog_la_CPPFLAGS = -D_PATH_MODDIR=\"$(pkglibdir)/:$(moddirs)\" $(PTHREADS_CFLAGS)
#librsyslog_la_LDFLAGS = -module -avoid-version
-librsyslog_la_LIBADD = $(DL_LIBS) $(RT_LIBS)
+librsyslog_la_LIBADD = $(ZLIB_LIBS) $(DL_LIBS) $(RT_LIBS)
@ENABLE_REGEXP_TRUE@lmregexp_la_SOURCES = regexp.c regexp.h
@ENABLE_REGEXP_TRUE@lmregexp_la_CPPFLAGS = $(PTHREADS_CFLAGS) $(RSRT_CFLAGS)
@ENABLE_REGEXP_TRUE@lmregexp_la_LDFLAGS = -module -avoid-version