From 1d1bbf63ba32d1199b4ecff9d2296fc79ea276ec Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 22 Nov 2016 23:55:31 +0100 Subject: fix libxml2-host compile, pkgconf is mandatory --- mk/host-bottom.mk | 4 ++-- mk/host.mk | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/host-bottom.mk b/mk/host-bottom.mk index 6ae8f1c7e..6fcd78e88 100644 --- a/mk/host-bottom.mk +++ b/mk/host-bottom.mk @@ -9,10 +9,10 @@ ${_HOST_CONFIGURE_COOKIE}: ${_HOST_PATCH_COOKIE} mkdir -p ${WRKBUILD} ifneq (,$(filter autogen,${AUTOTOOL_STYLE})) @$(CMD_TRACE) "autotooling.. " - @cd ${WRKSRC}; env ${AUTOTOOL_ENV} $(BASH) autogen.sh $(MAKE_TRACE) + @cd ${WRKSRC}; env ${HOST_AUTOTOOL_ENV} $(BASH) autogen.sh $(MAKE_TRACE) endif ifneq (,$(filter autoreconf,${AUTOTOOL_STYLE})) - cd ${WRKSRC}; env ${AUTOTOOL_ENV} autoreconf -if $(MAKE_TRACE) + cd ${WRKSRC}; env ${HOST_AUTOTOOL_ENV} autoreconf -vif $(MAKE_TRACE) @rm -rf ${WRKSRC}/autom4te.cache @touch ${WRKDIR}/.autoreconf_done endif diff --git a/mk/host.mk b/mk/host.mk index 9c5ca1caa..9ff38ac6f 100644 --- a/mk/host.mk +++ b/mk/host.mk @@ -6,6 +6,11 @@ ifneq (,$(findstring host,$(MAKECMDGOALS))) WRKDIR?= ${HOST_BUILD_DIR}/w-${PKG_NAME}-${PKG_VERSION}-${PKG_RELEASE}-host endif +HOST_AUTOTOOL_ENV+= PATH='${HOST_PATH}' \ + PKG_CONFIG_LIBDIR='${STAGING_HOST_DIR}/usr/lib/pkgconfig:${STAGING_HOST_DIR}/usr/share/pkgconfig' \ + PKG_CONFIG_SYSROOT_DIR='${STAGING_HOST_DIR}' \ + ${COMMON_ENV} + # this is environment for 'configure' HOST_CONFIGURE_ENV?= PATH='${HOST_PATH}' \ ${COMMON_ENV} \ -- cgit v1.2.3