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