[source] bsdiff: Also pass down TARGET_CPPFLAGS
LEDE Commits
lede-commits at lists.infradead.org
Thu Dec 14 09:43:17 PST 2017
jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/1e3ff02ea5d185f2a4145f0a577d5f44d07811f0
commit 1e3ff02ea5d185f2a4145f0a577d5f44d07811f0
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Sun Feb 12 13:21:01 2017 -0800
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 at gmail.com>
(cherry picked from commit 562ebe798255a2bb71c6a621d6a70662dfbd63c4)
---
package/utils/bsdiff/Makefile | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/package/utils/bsdiff/Makefile b/package/utils/bsdiff/Makefile
index 8589e77..db1f320 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
More information about the lede-commits
mailing list