From 0e075c08c04b21444b38a430af84dc5b7537d321 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Sat, 9 Oct 2021 12:38:33 +0100 Subject: build: fix linker flags for nf-log Use pkg-config LIBS variable for libmnl, instead of literal `-lmnl`. Append `$(LIBNETFILTER_CONNTRACK_LIBS)` to nf_log_LDADD. Signed-off-by: Jeremy Sowden Signed-off-by: Pablo Neira Ayuso --- utils/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/Makefile.am b/utils/Makefile.am index 4afd91b..39abb3e 100644 --- a/utils/Makefile.am +++ b/utils/Makefile.am @@ -7,10 +7,10 @@ nfulnl_test_LDADD = ../src/libnetfilter_log.la nfulnl_test_LDFLAGS = -dynamic nf_log_SOURCES = nf-log.c -nf_log_LDADD = ../src/libnetfilter_log.la -lmnl +nf_log_LDADD = ../src/libnetfilter_log.la $(LIBMNL_LIBS) nf_log_LDFLAGS = -dynamic if BUILD_NFCT -nf_log_LDFLAGS += $(LIBNETFILTER_CONNTRACK_LIBS) +nf_log_LDADD += $(LIBNETFILTER_CONNTRACK_LIBS) nf_log_CPPFLAGS = ${AM_CPPFLAGS} ${LIBNETFILTER_CONNTRACK_CFLAGS} -DBUILD_NFCT endif -- cgit v1.2.3