From 05f0beb6a82c43838196035d15d6757b1e571aa6 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 26 Oct 2019 14:47:52 +0200 Subject: [PATCH] libxslt/host: depend on libxml2/host The host build requires libxml2-dev. This commit adds the dependency for libxml2/host, as the host system may not have it installed. This also avoids using the host's xml2-config (in /usr/bin for instance) while linking to libraries in staging_dir/hostpkg. ldd staging_dir/hostpkg/bin/xsltproc | grep xml2 libxml2.so.2 => /home/sk/tmp/openwrt/staging_dir/hostpkg/lib/libxml2.so.2 (0x00007fcc0644c000) Signed-off-by: Sebastian Kemper --- libs/libxslt/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libs/libxslt/Makefile b/libs/libxslt/Makefile index 3fe97df30..954b15824 100644 --- a/libs/libxslt/Makefile +++ b/libs/libxslt/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libxslt PKG_VERSION:=1.1.33 -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:= \ @@ -26,6 +26,8 @@ PKG_MAINTAINER:=Jiri Slachta PKG_FIXUP:=autoreconf PKG_INSTALL:=1 +HOST_BUILD_DEPENDS:=libxml2/host + include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk @@ -130,6 +132,7 @@ endef HOST_CONFIGURE_ARGS+= \ --disable-silent-rules \ --enable-static \ + --with-libxml-prefix=$(STAGING_DIR_HOSTPKG) \ --without-python \ --without-crypto \ --without-debug \