iptables: link libxtables against libnetfilter_conntrack

Submitted by Gustavo Zacarias on Aug. 13, 2013, 1:15 p.m.

Details

Message ID 1376399723-9967-1-git-send-email-gustavo@zacarias.com.ar
State Not Applicable
Headers show

Commit Message

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 hide | download patch | download mbox

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