acef536d542ac8f41c12811c640dfc9c616da0ae
[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 diff -up miniupnpd-1.8.20140906/netfilter/Makefile.orig miniupnpd-1.8.20140906/netfilter/Makefile
8 --- miniupnpd-1.8.20140906/netfilter/Makefile.orig 2014-09-28 16:39:56.652296642 +0200
9 +++ miniupnpd-1.8.20140906/netfilter/Makefile 2013-12-13 14:12:11.000000000 +0100
10 @@ -38,6 +38,4 @@ endif
11 endif
12 endif
13
14 -LIBS += /lib/libip4tc.so /lib/libip6tc.so
15 -
16 all: iptcrdr.o testiptcrdr iptpinhole.o \
17 testiptcrdr_peer testiptcrdr_dscp test_nfct_get
18 # testiptpinhole
19 diff -up miniupnpd-1.8.20140906/Makefile.linux.orig miniupnpd-1.8.20140906/Makefile.linux
20 --- miniupnpd-1.8.20140906/Makefile.linux.orig 2014-09-28 16:46:06.781835136 +0200
21 +++ miniupnpd-1.8.20140906/Makefile.linux 2014-09-28 16:46:14.388907413 +0200
22 @@ -70,7 +70,6 @@ CPPFLAGS += -DIPTABLES_143
23 endif
24
25 CFLAGS += $(shell $(PKG_CONFIG) --cflags libiptc)
26 -LDLIBS += $(shell $(PKG_CONFIG) --static --libs-only-l libiptc)
27 LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libiptc)
28 LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-other libiptc)
29 else