summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-12-22 17:23:39 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2011-03-07 21:22:31 (GMT)
commitc08e016efad74b087b71df09b028f615eb5453db (patch)
treeaf8775ed00f5678743094686013ed15a6fa2efa3
parentac7dbcf925e084a4c2e1d22d53d5d7bdb829d4d6 (diff)
downloadbuildroot-c08e016efad74b087b71df09b028f615eb5453db.tar.gz
buildroot-c08e016efad74b087b71df09b028f615eb5453db.tar.bz2
libxml2: remove xml2-config script from TARGET_DIR
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libxml2/libxml2.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index d07f631..2a267b2 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -30,6 +30,14 @@ HOST_LIBXML2_CONF_OPT = \
--enable-shared --without-debugging --without-python \
--without-threads
+define LIBXML2_REMOVE_CONFIG_SCRIPTS
+ $(RM) -f $(TARGET_DIR)/usr/bin/xml2-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBXML2_POST_INSTALL_TARGET_HOOKS += LIBXML2_REMOVE_CONFIG_SCRIPTS
+endif
+
$(eval $(call AUTOTARGETS,package,libxml2))
$(eval $(call AUTOTARGETS,package,libxml2,host))