From 3011dcf8a1ea426ef2a07f528430ee6219ddf401 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 1 Feb 2011 02:56:49 +0100 Subject: build: use compile/link information from pkgconfig This is important for when the libraries are in a non-default path. Also, libs must be listed in LDADD/LIBADD, not LDFLAGS. Signed-off-by: Jan Engelhardt --- output/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'output') diff --git a/output/Makefile.am b/output/Makefile.am index 3811dad..2ec6e8d 100644 --- a/output/Makefile.am +++ b/output/Makefile.am @@ -1,5 +1,6 @@ AM_CPPFLAGS = -I$(top_srcdir)/include -AM_CFLAGS = ${regular_CFLAGS} +AM_CFLAGS = ${regular_CFLAGS} ${LIBNETFILTER_LOG_CFLAGS} \ + ${LIBNETFILTER_CONNTRACK_CFLAGS} SUBDIRS= pcap mysql pgsql sqlite3 dbi @@ -20,5 +21,6 @@ ulogd_output_NACCT_la_SOURCES = ulogd_output_NACCT.c ulogd_output_NACCT_la_LDFLAGS = -avoid-version -module ulogd_output_XML_la_SOURCES = ulogd_output_XML.c -ulogd_output_XML_la_LDFLAGS = -avoid-version -module -lnetfilter_log \ - -lnetfilter_conntrack +ulogd_output_XML_la_LIBADD = ${LIBNETFILTER_LOG_LIBS} \ + ${LIBNETFILTER_CONNTRACK_LIBS} +ulogd_output_XML_la_LDFLAGS = -avoid-version -module -- cgit v1.2.3