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 <sebastian_ml@gmx.net>
(cherry-picked from
05f0beb6a82c43838196035d15d6757b1e571aa6)
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:= \
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
+HOST_BUILD_DEPENDS:=libxml2/host
+
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/host-build.mk
HOST_CONFIGURE_ARGS+= \
--disable-silent-rules \
--enable-static \
+ --with-libxml-prefix=$(STAGING_DIR_HOSTPKG) \
--without-python \
--without-crypto \
--without-debug \