summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/libdnet/libdnet.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/libdnet/libdnet.mk b/package/libdnet/libdnet.mk
index eb67b055a..6dfecf90c 100644
--- a/package/libdnet/libdnet.mk
+++ b/package/libdnet/libdnet.mk
@@ -31,4 +31,12 @@ endef
LIBDNET_POST_EXTRACT_HOOKS += LIBDNET_FIXUP_ACINCLUDE_M4
+define LIBDNET_REMOVE_CONFIG_SCRIPT
+ $(RM) -f $(TARGET_DIR)/usr/bin/dnet-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBDNET_POST_INSTALL_TARGET_HOOKS += LIBDNET_REMOVE_CONFIG_SCRIPT
+endif
+
$(eval $(call AUTOTARGETS,package,libdnet))