All of lore.kernel.org
 help / color / mirror / Atom feed
* [iptables PATCH] configure: disable connlabel for static builds
@ 2015-01-13 13:46 Gustavo Zacarias
  2015-01-13 19:32 ` Florian Westphal
  0 siblings, 1 reply; 5+ messages in thread
From: Gustavo Zacarias @ 2015-01-13 13:46 UTC (permalink / raw)
  To: netfilter-devel; +Cc: Gustavo Zacarias

Disable connlabel for purely static builds since it pulls in libdl which
isn't available in such cases causing build breakage.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
 configure.ac | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/configure.ac b/configure.ac
index 2521ccc..0f92c48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -88,8 +88,12 @@ if test "$ac_cv_header_linux_ip_vs_h" != "yes"; then
 	blacklist_modules="$blacklist_modules ipvs";
 fi;
 
+if test "$enable_shared" = "yes"; then
 PKG_CHECK_MODULES([libnetfilter_conntrack], [libnetfilter_conntrack >= 1.0.4],
 	[nfconntrack=1], [nfconntrack=0])
+else
+	nfconntrack=0
+fi;
 AM_CONDITIONAL([HAVE_LIBNETFILTER_CONNTRACK], [test "$nfconntrack" = 1])
 
 if test "$nfconntrack" -ne 1; then
-- 
2.0.5


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-01-14  9:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-13 13:46 [iptables PATCH] configure: disable connlabel for static builds Gustavo Zacarias
2015-01-13 19:32 ` Florian Westphal
2015-01-13 19:40   ` Gustavo Zacarias
2015-01-14  0:32     ` Jan Engelhardt
2015-01-14  9:48       ` Gustavo Zacarias

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.