From: Florian Fainelli Date: Wed, 19 Apr 2017 00:59:41 +0000 (-0700) Subject: smartsnmpd: Properly pass down TARGET_CPPFLAGS X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=fdd3f3f7f955266333b1957be93d3cd58a88ef85;p=openwrt-packages.git smartsnmpd: Properly pass down TARGET_CPPFLAGS The smartsnmpd SConstruct file only accepts setting CFLAGS and does not use CPPFLAGS, so pass both down using CFLAGS. This fixes build errors with external toolchains that don't automatically search for headers in $(STAGING_DIR). Signed-off-by: Florian Fainelli --- diff --git a/net/smartsnmpd/Makefile b/net/smartsnmpd/Makefile index 9be39cbac..0f767daa9 100644 --- a/net/smartsnmpd/Makefile +++ b/net/smartsnmpd/Makefile @@ -47,6 +47,7 @@ SCONS_OPTIONS += --transport=uloop define Build/Configure (cd $(PKG_BUILD_DIR); \ $(SCONS_VARS) \ + CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ scons \ prefix=/usr \ $(SCONS_OPTIONS) \