Inspired/adapted from `package-defaults.mk` MAKE_VARS.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
--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
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