From: Florian Fainelli Date: Sun, 12 Feb 2017 21:21:01 +0000 (-0800) Subject: bsdiff: Also pass down TARGET_CPPFLAGS X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=562ebe798255a2bb71c6a621d6a70662dfbd63c4;p=openwrt%2Fstaging%2Fblocktrron.git bsdiff: Also pass down TARGET_CPPFLAGS Fixes build with external toolchains not having STAGING_DIR in their default search path(s). Signed-off-by: Florian Fainelli --- diff --git a/package/utils/bsdiff/Makefile b/package/utils/bsdiff/Makefile index 8589e77eae..db1f320872 100644 --- a/package/utils/bsdiff/Makefile +++ b/package/utils/bsdiff/Makefile @@ -40,10 +40,10 @@ endef define Build/Compile - $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \ + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \ -o $(PKG_BUILD_DIR)/bsdiff \ $(PKG_BUILD_DIR)/bsdiff.c -lbz2 - $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \ + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(TARGET_LDFLAGS) \ -o $(PKG_BUILD_DIR)/bspatch \ $(PKG_BUILD_DIR)/bspatch.c -lbz2 endef