aboutsummaryrefslogtreecommitdiffstats
path: root/package/dnsmasq/Makefile
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-01-18 19:00:53 +0000
committerJo-Philipp Wich <jow@openwrt.org>2012-01-18 19:00:53 +0000
commit77ef1563a00f1646ed9e3f1d50aebf7b2c8eaa7a (patch)
tree9a881f72a8625ef6cb67627b8c97998a470f36b7 /package/dnsmasq/Makefile
parent6ef002c501c3175612c4af757b72265604fae522 (diff)
downloadupstream-77ef1563a00f1646ed9e3f1d50aebf7b2c8eaa7a.tar.gz
upstream-77ef1563a00f1646ed9e3f1d50aebf7b2c8eaa7a.tar.bz2
upstream-77ef1563a00f1646ed9e3f1d50aebf7b2c8eaa7a.zip
[package] dnsmasq: if CONFIG_IPV6 is off, compile with -DNO_IPV6 - solves unresolved refs to in6addr_any when building with external CodeSourcery toolchain
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29777 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/dnsmasq/Makefile')
-rw-r--r--package/dnsmasq/Makefile4
1 files changed, 3 insertions, 1 deletions
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) \