From: Waldemar Brodkorb Date: Mon, 13 Jun 2016 06:07:17 +0000 (+0200) Subject: dmalloc: fix static build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b851be9bdcd85c22b380a66e5ffa19d02a360c4b;p=buildroot.git 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 --- 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