Hi, your change makes no sense, the logic is the very same.
It is possible that yours is not even working and will now always disable IPv6, even if its actually enable. I believe the actual problem is that CONFIG_IPV6 refers to the kernel config symbol here, not to the one from our build .config. ~ Jow On 08.03.2016 19:55, Ronaldo Afonso wrote: > 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 <rona...@ronaldoafonso.com.br > <mailto:rona...@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) \ > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel > _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel