[source] build: introduce default HOST_MAKE_VARS for host-builds
LEDE Commits
lede-commits at lists.infradead.org
Wed Feb 1 07:08:37 PST 2017
jow pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/83c9bfad1e8a76e04efe8b540b404a2148374333
commit 83c9bfad1e8a76e04efe8b540b404a2148374333
Author: Alexandru Ardelean <ardeleanalex at gmail.com>
AuthorDate: Mon Jan 9 14:59:02 2017 +0200
build: introduce default HOST_MAKE_VARS for host-builds
Inspired/adapted from `package-defaults.mk` MAKE_VARS.
Signed-off-by: Alexandru Ardelean <ardeleanalex at gmail.com>
---
include/host-build.mk | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/include/host-build.mk b/include/host-build.mk
index 5cfbdeb..c54ee37 100644
--- a/include/host-build.mk
+++ b/include/host-build.mk
@@ -67,6 +67,11 @@ HOST_CONFIGURE_ARGS = \
--localstatedir=$(HOST_BUILD_PREFIX)/var \
--sbindir=$(HOST_BUILD_PREFIX)/bin
+HOST_MAKE_VARS = \
+ CFLAGS="$(HOST_CFLAGS)" \
+ CXXFLAGS="$(HOST_CPPFLAGS)" \
+ LDFLAGS="$(HOST_LDFLAGS)"
+
HOST_MAKE_FLAGS =
HOST_CONFIGURE_CMD = $(BASH) ./configure
@@ -89,7 +94,8 @@ define Host/Configure
endef
define Host/Compile/Default
- +$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
+ +$(HOST_MAKE_VARS) \
+ $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
$(HOST_MAKE_FLAGS) \
$(1)
endef
More information about the lede-commits
mailing list