(libdb.so): Depend on libc.so for dynamic loading and for Linux ld.so.
authordrepper <drepper>
Wed, 21 May 1997 15:51:35 +0000 (15:51 +0000)
committerdrepper <drepper>
Wed, 21 May 1997 15:51:35 +0000 (15:51 +0000)
db/Makefile

index 0ed798b..331c8b1 100644 (file)
@@ -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