summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/iptables/iptables.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk
index f059807b63..2ef879d85e 100644
--- a/package/iptables/iptables.mk
+++ b/package/iptables/iptables.mk
@@ -12,7 +12,9 @@ IPTABLES_DEPENDENCIES = host-pkgconf \
$(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack)
IPTABLES_LICENSE = GPLv2
IPTABLES_LICENSE_FILES = COPYING
-IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr
+# Building static causes ugly warnings on some plugins
+IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \
+ $(if $(BR2_PREFER_STATIC_LIB),,--disable-static)
# Because of iptables-01-fix-static-link.patch
IPTABLES_AUTORECONF = YES
OpenPOWER on IntegriCloud