Patchwork iptables: link libxtables against libnetfilter_conntrack

login
register
mail settings
Submitter Gustavo Zacarias
Date Aug. 13, 2013, 1:15 p.m.
Message ID <1376399723-9967-1-git-send-email-gustavo@zacarias.com.ar>
Download mbox | patch
Permalink /patch/266798/
State Not Applicable
Headers show

Comments

Gustavo Zacarias - Aug. 13, 2013, 1:15 p.m.
When libnetfilter_conntrack is available libxtables needs to link
against it otherwise we get build failures.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 libxtables/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

Patch

diff --git a/libxtables/Makefile.am b/libxtables/Makefile.am
index c5795fe..2460815 100644
--- a/libxtables/Makefile.am
+++ b/libxtables/Makefile.am
@@ -18,3 +18,6 @@  libxtables_la_LIBADD += -ldl
 else
 libxtables_la_CFLAGS  = ${AM_CFLAGS} -DNO_SHARED_LIBS=1
 endif
+if HAVE_LIBNETFILTER_CONNTRACK
+libxtables_la_LIBADD += @libnetfilter_conntrack_LIBS@
+endif