aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/bsdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-02-12 13:21:01 -0800
committerFlorian Fainelli <f.fainelli@gmail.com>2017-03-01 17:19:50 -0800
commit562ebe798255a2bb71c6a621d6a70662dfbd63c4 (patch)
treec1f2e301336c33bb400d7ca35ccfd52fe9481065 /package/utils/bsdiff
parent9b2321f42d075a12e73a81b89bd49b8696d3700f (diff)
downloadupstream-562ebe798255a2bb71c6a621d6a70662dfbd63c4.tar.gz
upstream-562ebe798255a2bb71c6a621d6a70662dfbd63c4.tar.bz2
upstream-562ebe798255a2bb71c6a621d6a70662dfbd63c4.zip
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 <f.fainelli@gmail.com>
Diffstat (limited to 'package/utils/bsdiff')
-rw-r--r--package/utils/bsdiff/Makefile4
1 files changed, 2 insertions, 2 deletions
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