LIBXML2_AUTORECONF = NO
LIBXML2_INSTALL_STAGING = YES
LIBXML2_INSTALL_TARGET = YES
+LIBXML2_INSTALL_TARGET_OPT:=DESTDIR=$(TARGET_DIR) install-strip
ifneq ($(BR2_LARGEFILE),y)
LIBXML2_CONF_ENV = CC="$(TARGET_CC) $(TARGET_CFLAGS) -DNO_LARGEFILE_SOURCE"
$(eval $(call AUTOTARGETS,package,libxml2))
$(LIBXML2_HOOK_POST_INSTALL):
- $(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(TARGET_DIR)/usr/lib/libxml2*so*
+ rm -rf $(TARGET_DIR)/usr/share/aclocal \
+ $(TARGET_DIR)/usr/share/doc/libxml2-$(LIBXML2_VERSION) \
+ $(TARGET_DIR)/usr/share/gtk-doc
touch $@