1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 01:43:08 +02:00

adjust host-build.mk to bring it closer to package.mk

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14699 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nbd 2009-02-28 21:03:17 +00:00
parent 98b042952a
commit e9bc27949d

View File

@ -34,27 +34,33 @@ define Host/Prepare
$(call Host/Prepare/Default) $(call Host/Prepare/Default)
endef endef
HOST_CONFIGURE_VARS = \
CPPFLAGS="$(HOST_CFLAGS)" \
LDFLAGS="$(HOST_LDFLAGS)" \
SHELL="$(BASH)"
HOST_CONFIGURE_ARGS = \
--target=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=$(STAGING_DIR_HOST) \
--exec-prefix=$(STAGING_DIR_HOST) \
--sysconfdir=$(STAGING_DIR_HOST)/etc \
--localstatedir=$(STAGING_DIR_HOST)/var
HOST_CONFIGURE_CMD = ./configure
define Host/Configure/Default define Host/Configure/Default
@(cd $(HOST_BUILD_DIR)/$(3); \ @(cd $(HOST_BUILD_DIR)/$(3); \
[ -x configure ] && \ if [ -x configure ]; then \
$(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \ $(CP) $(SCRIPT_DIR)/config.{guess,sub} $(HOST_BUILD_DIR)/$(3)/ && \
$(2) \ $(2) \
CPPFLAGS="$(HOST_CFLAGS)" \ $(HOST_CONFIGURE_CMD) \
LDFLAGS="$(HOST_LDFLAGS)" \ $(HOST_CONFIGURE_ARGS) \
SHELL="$(BASH)" \ $(1); \
./configure \ fi \
--target=$(GNU_HOST_NAME) \
--host=$(GNU_HOST_NAME) \
--build=$(GNU_HOST_NAME) \
--program-prefix="" \
--program-suffix="" \
--prefix=$(STAGING_DIR_HOST) \
--exec-prefix=$(STAGING_DIR_HOST) \
--sysconfdir=$(STAGING_DIR_HOST)/etc \
--localstatedir=$(STAGING_DIR_HOST)/var \
$(DISABLE_NLS) \
$(1); \
true; \
) )
endef endef