1 The miniupnpd makefile tries to autodetect iptables capabilities.
2 This will incorrectly detect capabilities such as ipv6 support even though it is disabled for the target build.
4 As the OpenWRT buildsystem already passes the right compile flags, we can skip the autodetection.
7 --- a/netfilter/Makefile
8 +++ b/netfilter/Makefile
9 @@ -38,8 +38,6 @@ endif
13 -LIBS += /lib/libip4tc.so /lib/libip6tc.so
15 all: iptcrdr.o testiptcrdr iptpinhole.o \
16 testiptcrdr_peer testiptcrdr_dscp test_nfct_get
20 @@ -73,7 +73,6 @@ CPPFLAGS += -DIPTABLES_143
23 CFLAGS += $(shell $(PKG_CONFIG) --cflags libiptc)
24 -LDLIBS += $(shell $(PKG_CONFIG) --static --libs-only-l libiptc)
25 LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libiptc)
26 LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-other libiptc)