1
0

103-no-ipv6-autodetection.patch 878 B

123456789101112131415161718192021222324252627
  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. As the OpenWRT buildsystem already passes the right compile flags, we can skip the autodetection.
  4. --- a/netfilter/Makefile
  5. +++ b/netfilter/Makefile
  6. @@ -38,8 +38,6 @@ endif
  7. endif
  8. endif
  9. -LIBS += /lib/libip4tc.so /lib/libip6tc.so
  10. -
  11. all: iptcrdr.o testiptcrdr iptpinhole.o \
  12. testiptcrdr_peer testiptcrdr_dscp test_nfct_get
  13. # testiptpinhole
  14. --- a/Makefile.linux
  15. +++ b/Makefile.linux
  16. @@ -73,7 +73,6 @@ CPPFLAGS += -DIPTABLES_143
  17. endif
  18. CFLAGS += $(shell $(PKG_CONFIG) --cflags libiptc)
  19. -LDLIBS += $(shell $(PKG_CONFIG) --static --libs-only-l libiptc)
  20. LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-L libiptc)
  21. LDFLAGS += $(shell $(PKG_CONFIG) --libs-only-other libiptc)
  22. else