libxslt/host: depend on libxml2/host
authorSebastian Kemper <sebastian_ml@gmx.net>
Sat, 26 Oct 2019 12:47:52 +0000 (14:47 +0200)
committerRosen Penev <rosenp@gmail.com>
Tue, 28 Jan 2020 17:31:40 +0000 (09:31 -0800)
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)

libs/libxslt/Makefile

index 3fe97df30195797c022d730ceb9f9559e70ae37d..954b158246f35a13c3d83d0ea63e1ae68ab035c6 100644 (file)
@@ -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 <jiri@slachta.eu>
 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 \