50d5a392b62cb53ae4bfbea34773077eba6d71bc
[feed/routing.git] / miniupnpd / patches / 103-no-ipv6-autodetection.patch
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.
3
4 As the OpenWRT buildsystem already passes the right compile flags, we can skip the autodetection.
5
6
7 --- a/netfilter/Makefile
8 +++ b/netfilter/Makefile
9 @@ -38,8 +38,6 @@ endif
10 endif
11 endif
12
13 -LIBS += /lib/libip4tc.so /lib/libip6tc.so
14 -
15 all: iptcrdr.o testiptcrdr iptpinhole.o \
16 testiptcrdr_peer testiptcrdr_dscp test_nfct_get
17 # testiptpinhole
18 --- a/Makefile.linux
19 +++ b/Makefile.linux
20 @@ -73,7 +73,6 @@ CPPFLAGS += -DIPTABLES_143
21 endif
22
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)
27 else