From: Jo-Philipp Wich Date: Thu, 23 Nov 2017 19:47:59 +0000 (+0100) Subject: polipo: forcibly enable IPv6 support X-Git-Url: http://git.openwrt.org/openwrt/feeds.git?a=commitdiff_plain;h=afaceadeda4496c3f846092c2deb1ae14f4c8c6e;p=feed%2Fpackages.git polipo: forcibly enable IPv6 support Currently `polipo.h` uses the conditional `(__GLIBC__ > 2) || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2)` to decide whether to enable IPv6 support. This used to work for OpenWrt CC which uses uClibc disguising itself as Glibc 2.x but it does not work with Musl libc anymore as this library does not export any Glibc defines. Forcibly enable IPv6 support by passing `-DHAVE_IPv6` unconditionally through the build flags in the OpenWrt/LEDE Makefile. Signed-off-by: Jo-Philipp Wich --- diff --git a/net/polipo/Makefile b/net/polipo/Makefile index a853fb20f9..93aa18a26a 100644 --- a/net/polipo/Makefile +++ b/net/polipo/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=polipo PKG_VERSION:=1.1.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/$(PKG_NAME)/ @@ -33,6 +33,8 @@ define Package/polipo/description by a larger group. endef +TARGET_CFLAGS += -DHAVE_IPv6 + define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ CC="$(TARGET_CC)" \