[OpenWrt-Devel] [PATCH 1/5] [package] iptables: Disable IPv6 support
Ronaldo Afonso
ronaldo at ronaldoafonso.com.br
Tue Mar 8 13:55:21 EST 2016
I was trying to disable IPv6 support when compiling OpenWrt for
TP-Link tl-wr3040
router and got some errors compiling the iptables package.
It seems that iptables package cannot be compiled if IPv6 support was
disabled.
Checking the Makefile for iptables package I think I found something wrong
with the "--disable-ipv6" configure argument option.
The patch that follows solved the problem.
Signed-off-by: Ronaldo Afonso <ronaldo at ronaldoafonso.com.br>
diff --git a/package/network/utils/iptables/Makefile b/package/network/utils
/iptables/Makefile
index 6f7529c..4e2c4c8 100644
--- a/package/network/utils/iptables/Makefile
+++ b/package/network/utils/iptables/Makefile
@@ -434,8 +434,11 @@ CONFIGURE_ARGS += \
--enable-devel \
--with-kernel="$(LINUX_DIR)/user_headers" \
--with-xtlibdir=/usr/lib/iptables \
- --enable-static \
- $(if $(CONFIG_IPV6),,--disable-ipv6)
+ --enable-static
+
+ifndef ($(CONFIG_IPV6))
+ CONFIGURE_ARGS += --disable-ipv6
+endif
MAKE_FLAGS := \
$(TARGET_CONFIGURE_OPTS) \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20160308/cc772578/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list