diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2016-06-13 08:07:17 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-07-02 15:54:43 +0200 |
commit | b851be9bdcd85c22b380a66e5ffa19d02a360c4b (patch) | |
tree | 45731c9a76c4e19a9540b1ee0c3730332de22634 | |
parent | 0f163c819c4d8ee76c317ce45e71c9267bae28c1 (diff) | |
download | buildroot-b851be9bdcd85c22b380a66e5ffa19d02a360c4b.tar.gz buildroot-b851be9bdcd85c22b380a66e5ffa19d02a360c4b.zip |
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 <wbx@openadk.org>
[Thomas: use an intermediate variable rather than duplicating code.]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/dmalloc/dmalloc.mk | 8 |
1 files changed, 7 insertions, 1 deletions
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 |