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 <[email protected]> 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) \
_______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
