Browse Source

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 <f.fainelli@gmail.com>
lilik-openwrt-22.03
Florian Fainelli 8 years ago
parent
commit
fdd3f3f7f9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      net/smartsnmpd/Makefile

+ 1
- 0
net/smartsnmpd/Makefile View 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) \


Loading…
Cancel
Save