From b851be9bdcd85c22b380a66e5ffa19d02a360c4b Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 13 Jun 2016 08:07:17 +0200 Subject: [PATCH] dmalloc: fix static build For example coldfire uses FLAT binaries, which are statically build. Fixes following autobuild failure: http://autobuild.buildroot.net/results/cc4233a4c3f92275a4071c172330c920c35219ca/ Signed-off-by: Waldemar Brodkorb [Thomas: use an intermediate variable rather than duplicating code.] Signed-off-by: Thomas Petazzoni --- package/dmalloc/dmalloc.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/dmalloc/dmalloc.mk b/package/dmalloc/dmalloc.mk index f87ae1709a..ffa9a3979e 100644 --- a/package/dmalloc/dmalloc.mk +++ b/package/dmalloc/dmalloc.mk @@ -56,8 +56,14 @@ define DMALLOC_INSTALL_STAGING_CMDS -C $(@D) install endef -define DMALLOC_INSTALL_TARGET_CMDS +ifeq ($(BR2_STATIC_LIBS),) +define DMALLOC_INSTALL_SHARED_LIB cp -dpf $(STAGING_DIR)/usr/lib/libdmalloc*.so $(TARGET_DIR)/usr/lib +endef +endif + +define DMALLOC_INSTALL_TARGET_CMDS + $(DMALLOC_INSTALL_SHARED_LIB) cp -dpf $(STAGING_DIR)/usr/bin/dmalloc $(TARGET_DIR)/usr/bin/dmalloc endef -- 2.30.2