summaryrefslogtreecommitdiffstats
path: root/libxtables
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2013-08-13 21:02:06 +0200
committerFlorian Westphal <fw@strlen.de>2013-08-23 21:54:47 +0200
commit76e230e41947576efb96e86e605bb84015cdb287 (patch)
treebae4e511090e0d50a00ad3f0d6d917a71c379827 /libxtables
parentb28d4dcc9f5559e9c03f35458ac103cfb89d8f87 (diff)
iptables: link against libnetfilter_conntrack
Linking currently fails in --enable-static case: ../extensions/libext.a(libxt_connlabel.o): In function `connlabel_get_name': iptables/extensions/libxt_connlabel.c:57: undefined reference to `nfct_labelmap_get_name' [..] It's libxtables.la(libxt_connlabel.o) using libnetfilter_conntrack. If libnetfilter_conntrack is not found, @libnetfilter_conntrack_CFLAGS@ and @libnetfilter_conntrack_LIBS@ (and their ${} ones) should be empty, therefore producing no harm to include unconditionally. Reported-and-tested-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'libxtables')
-rw-r--r--libxtables/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/libxtables/Makefile.am b/libxtables/Makefile.am
index c5795fef..4267cb5f 100644
--- a/libxtables/Makefile.am
+++ b/libxtables/Makefile.am
@@ -10,7 +10,7 @@ libxtables_la_LIBADD =
if ENABLE_STATIC
# With --enable-static, shipped extensions are linked into the main executable,
# so we need all the LIBADDs here too
-libxtables_la_LIBADD += -lm
+libxtables_la_LIBADD += -lm ${libnetfilter_conntrack_LIBS}
endif
if ENABLE_SHARED
libxtables_la_CFLAGS = ${AM_CFLAGS}