]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - nss/Makefile
Wed Jul 3 11:26:28 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
[thirdparty/glibc.git] / nss / Makefile
index 4ab774a80951d65f931a9127e7cc6b9dd05efd9e..8df173cbdf7d12973a1e8eb053eef06ac6efe1b8 100644 (file)
@@ -68,3 +68,8 @@ $(libnss_db-routines:%=$(objpfx)%.c): $(objpfx)db-%.c: nss_files/files-%.c
         echo '#define GENERIC "../nss_db/db-XXX.c"';\
         echo '#include <$<>') > $@.new
        mv -f $@.new $@
+
+# 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.
+$(services:%=$(objpfx)libnss_%.so): $(common-objpfx)libc.so