diff options
author | Alexandru Ardelean <ardeleanalex@gmail.com> | 2017-01-09 14:59:02 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2017-01-17 09:18:45 +0100 |
commit | e9d20f1f8711f3e80141cf39efcc54a69feed861 (patch) | |
tree | 1ba701b7189eb7194a9e69083a6f2101ce0c637d /include/host-build.mk | |
parent | 968fa531977f5d5b8ef8da83553f66d4a638cb51 (diff) | |
download | upstream-e9d20f1f8711f3e80141cf39efcc54a69feed861.tar.gz upstream-e9d20f1f8711f3e80141cf39efcc54a69feed861.tar.bz2 upstream-e9d20f1f8711f3e80141cf39efcc54a69feed861.zip |
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>
Diffstat (limited to 'include/host-build.mk')
-rw-r--r-- | include/host-build.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/host-build.mk b/include/host-build.mk index 5cfbdeba51..c54ee3755c 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 |