From: Jo-Philipp Wich Date: Wed, 18 Jan 2012 19:00:53 +0000 (+0000) Subject: [package] dnsmasq: if CONFIG_IPV6 is off, compile with -DNO_IPV6 - solves unresolved... X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=b338ad65c45ff8f68d1e271a40f9e8cb551c4b5d [package] dnsmasq: if CONFIG_IPV6 is off, compile with -DNO_IPV6 - solves unresolved refs to in6addr_any when building with external CodeSourcery toolchain SVN-Revision: 29777 --- diff --git a/package/dnsmasq/Makefile b/package/dnsmasq/Makefile index a2084a616c..a23e9ff795 100644 --- a/package/dnsmasq/Makefile +++ b/package/dnsmasq/Makefile @@ -35,7 +35,9 @@ define Package/dnsmasq/conffiles /etc/dnsmasq.conf endef -TARGET_CFLAGS += -ffunction-sections -fdata-sections +TARGET_CFLAGS += \ + -ffunction-sections -fdata-sections \ + $(if $(CONFIG_IPV6),,-DNO_IPV6) MAKE_FLAGS := \ $(TARGET_CONFIGURE_OPTS) \