smartsnmpd: Properly pass down TARGET_CPPFLAGS
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 19 Apr 2017 00:59:41 +0000 (17:59 -0700)
committerFlorian Fainelli <f.fainelli@gmail.com>
Tue, 6 Jun 2017 00:18:51 +0000 (17:18 -0700)
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 <f.fainelli@gmail.com>
net/smartsnmpd/Makefile

index 9be39cbacf5c0ba01946a1e1df70d08fb5927fd2..0f767daa987e568733a23af64694bb4119b9e6db 100644 (file)
@@ -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) \