From b3c8de9c5aecde38eec964f31120df82b9704c8c Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Tue, 6 Nov 2018 16:06:27 +0100 Subject: xt: always build with a minimal support for xt match/target decode When building without libxtables, nft would just silently omit any presence of nft_compat in the output. This adds ifdef-ry to at least print name of target/match involved when libxtables isn't available for decoding. Signed-off-by: Florian Westphal --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 307bab10..31d076cd 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -83,8 +83,8 @@ libminigmp_la_CFLAGS = ${AM_CFLAGS} -Wno-sign-compare libnftables_la_LIBADD += libminigmp.la endif -if BUILD_XTABLES libnftables_la_SOURCES += xt.c +if BUILD_XTABLES libnftables_la_LIBADD += ${XTABLES_LIBS} endif -- cgit v1.2.3