-D is a preprocessor flag, needs to go into _CPPFLAGS; -l is a library selection, needs to go into _LDADD/_LIBADD. NETFILTER_CONNTRACK_CFLAGS was missing, too. Signed-off-by: Jan Engelhardt <jengelh@xxxxxxx> --- utils/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git utils/Makefile.am utils/Makefile.am index a848b10..4afd91b 100644 --- utils/Makefile.am +++ utils/Makefile.am @@ -7,11 +7,11 @@ nfulnl_test_LDADD = ../src/libnetfilter_log.la nfulnl_test_LDFLAGS = -dynamic nf_log_SOURCES = nf-log.c -nf_log_LDADD = ../src/libnetfilter_log.la -nf_log_LDFLAGS = -dynamic -lmnl +nf_log_LDADD = ../src/libnetfilter_log.la -lmnl +nf_log_LDFLAGS = -dynamic if BUILD_NFCT nf_log_LDFLAGS += $(LIBNETFILTER_CONNTRACK_LIBS) -nf_log_CFLAGS = -DBUILD_NFCT +nf_log_CPPFLAGS = ${AM_CPPFLAGS} ${LIBNETFILTER_CONNTRACK_CFLAGS} -DBUILD_NFCT endif if BUILD_IPULOG -- 2.29.2