mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
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>
This commit is contained in:
parent
968fa53197
commit
e9d20f1f87
@ -67,6 +67,11 @@ HOST_CONFIGURE_ARGS = \
|
|||||||
--localstatedir=$(HOST_BUILD_PREFIX)/var \
|
--localstatedir=$(HOST_BUILD_PREFIX)/var \
|
||||||
--sbindir=$(HOST_BUILD_PREFIX)/bin
|
--sbindir=$(HOST_BUILD_PREFIX)/bin
|
||||||
|
|
||||||
|
HOST_MAKE_VARS = \
|
||||||
|
CFLAGS="$(HOST_CFLAGS)" \
|
||||||
|
CXXFLAGS="$(HOST_CPPFLAGS)" \
|
||||||
|
LDFLAGS="$(HOST_LDFLAGS)"
|
||||||
|
|
||||||
HOST_MAKE_FLAGS =
|
HOST_MAKE_FLAGS =
|
||||||
|
|
||||||
HOST_CONFIGURE_CMD = $(BASH) ./configure
|
HOST_CONFIGURE_CMD = $(BASH) ./configure
|
||||||
@ -89,7 +94,8 @@ define Host/Configure
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define Host/Compile/Default
|
define Host/Compile/Default
|
||||||
+$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
+$(HOST_MAKE_VARS) \
|
||||||
|
$(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
|
||||||
$(HOST_MAKE_FLAGS) \
|
$(HOST_MAKE_FLAGS) \
|
||||||
$(1)
|
$(1)
|
||||||
endef
|
endef
|
||||||
|
Loading…
Reference in New Issue
Block a user