From 9cf371c1f42e31cb6bbb2d6cff1308f978ee61ee Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 16 Sep 2017 16:27:37 -0700 Subject: [PATCH] dnsmasq: Pass TARGET_CPPFLAGS to Makefile With the introduction of the ubus notifications, we would now fail building dnsmasq with external toolchains that don't automatically search for headers. Pass TARGET_CPPFLAGS to the Makefile to resolve that. Fixes: 34a206bc1194 ("dnsmasq: add ubus notifications for new leases") Signed-off-by: Florian Fainelli (cherry picked from commit ef485bb23d207e0b1031d264a6fafce01d2bdf8f) --- package/network/services/dnsmasq/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/network/services/dnsmasq/Makefile b/package/network/services/dnsmasq/Makefile index fe6a6d2fed..01c7191192 100644 --- a/package/network/services/dnsmasq/Makefile +++ b/package/network/services/dnsmasq/Makefile @@ -137,7 +137,7 @@ endif MAKE_FLAGS := \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ + CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" \ COPTS="$(COPTS)" \ PREFIX="/usr"