Use pkg-config LIBS variable for libmnl, instead of literal `-lmnl`. Append `$(LIBNETFILTER_CONNTRACK_LIBS)` to nf_log_LDADD. Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx> --- utils/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/Makefile.am b/utils/Makefile.am index 4afd91b0756d..39abb3e00af9 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 -- 2.33.0