From: Michael Heimpold Date: Sat, 2 Apr 2016 21:10:06 +0000 (+0200) Subject: libxml2: prevent host compile to overwrite xml2-config (closes #2566) X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=f75da5729bae926b8919ba863cb765c67db34db9;p=openwrt-packages.git libxml2: prevent host compile to overwrite xml2-config (closes #2566) Host compilation overwrites "$(STAGING_DIR)/host/bin/xml2-config with an unpatched variant. So apply the same sed expression before installing the file during host install. Thanks to @zyxmon for spotting this. Signed-off-by: Michael Heimpold --- diff --git a/libs/libxml2/Makefile b/libs/libxml2/Makefile index 8e09530e3..fd0251489 100644 --- a/libs/libxml2/Makefile +++ b/libs/libxml2/Makefile @@ -130,5 +130,10 @@ define Package/libxml2/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libxml2.so* $(1)/usr/lib/ endef +define Host/Install + $(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' $(HOST_BUILD_DIR)/xml2-config + $(call Host/Install/Default) +endef + $(eval $(call HostBuild)) $(eval $(call BuildPackage,libxml2))