From fdd3f3f7f955266333b1957be93d3cd58a88ef85 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 18 Apr 2017 17:59:41 -0700 Subject: [PATCH] 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 --- net/smartsnmpd/Makefile | 1 + 1 file changed, 1 insertion(+) 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) \