summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandru Ardelean <ardeleanalex@gmail.com>2017-01-09 14:59:02 +0200
committerJo-Philipp Wich <jo@mein.io>2017-02-01 16:03:56 +0100
commit83c9bfad1e8a76e04efe8b540b404a2148374333 (patch)
treebf0a06e65a0aa894562e350534200566882d718d
parent82009d4e30556d6e8f68c3634376e778814c4c87 (diff)
downloadmtk-20170518-83c9bfad1e8a76e04efe8b540b404a2148374333.zip
mtk-20170518-83c9bfad1e8a76e04efe8b540b404a2148374333.tar.gz
mtk-20170518-83c9bfad1e8a76e04efe8b540b404a2148374333.tar.bz2
build: introduce default HOST_MAKE_VARS for host-builds
Inspired/adapted from `package-defaults.mk` MAKE_VARS. Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
-rw-r--r--include/host-build.mk8
1 files changed, 7 insertions, 1 deletions
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