summaryrefslogtreecommitdiff
path: root/db/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'db/Makefile')
-rw-r--r--db/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/db/Makefile b/db/Makefile
index 0ed798b6cf..331c8b1d74 100644
--- a/db/Makefile
+++ b/db/Makefile
@@ -45,3 +45,8 @@ $(objpfx)makedb: $(objpfx)libdb.so$(libdb.so-version)
else
$(objpfx)makedb: $(objpfx)libdb.a
endif
+
+# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
+# This ensures they will load libc.so for needed symbols if loaded by
+# a statically-linked program that hasn't already loaded it.
+$(objpfx)libdb.so: $(common-objpfx)libc.so