about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
Diffstat (limited to 'malloc')
-rw-r--r--malloc/Depend1
-rw-r--r--malloc/Makefile3
2 files changed, 4 insertions, 0 deletions
diff --git a/malloc/Depend b/malloc/Depend
new file mode 100644
index 0000000000..910c6d9152
--- /dev/null
+++ b/malloc/Depend
@@ -0,0 +1 @@
+dlfcn
diff --git a/malloc/Makefile b/malloc/Makefile
index 68f5d10aeb..eb6563777c 100644
--- a/malloc/Makefile
+++ b/malloc/Makefile
@@ -98,3 +98,6 @@ $(objpfx)mtrace: mtrace.pl
 	sed -e 's|@PERL@|$(PERL)|' -e 's|@XXX@|$(address-width)|' \
 	    -e 's|@VERSION@|$(version)|' $^ > $@.new \
 	&& rm -fr $@ && mv $@.new $@ && chmod +x $@
+
+# The implementation uses `dlsym'
+$(objpfx)libmemprof.so: $(common-objpfx)dlfcn/libdl.so