iptables: pass --disable-ipv6 if CONFIG_IPV6 is off, fixes undefined refs to in6addr_...
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 19:05:48 +0000 (19:05 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 19:05:48 +0000 (19:05 +0000)
SVN-Revision: 29778

package/iptables/Makefile

index 67dedca38ffa5994a4da5eb2ad39dcc707d32dc1..b60990cabfcf1a9faa17941e2690398688298080 100644 (file)
@@ -388,7 +388,7 @@ TARGET_CFLAGS += \
 CONFIGURE_ARGS += \
        --enable-shared \
        --enable-devel \
-       --enable-ipv6 \
+       $(if $(CONFIG_IPV6),--enable-ipv6,--disable-ipv6) \
        --enable-libipq \
        --with-kernel="$(LINUX_DIR)" \
        --with-xtlibdir=/usr/lib/iptables