about summary refs log tree commit diff
path: root/md5-crypt
diff options
context:
space:
mode:
Diffstat (limited to 'md5-crypt')
-rw-r--r--md5-crypt/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/md5-crypt/Makefile b/md5-crypt/Makefile
index 0d17af1667..6216ddb437 100644
--- a/md5-crypt/Makefile
+++ b/md5-crypt/Makefile
@@ -64,3 +64,8 @@ $(objpfx)$(patsubst %,$(libtype$o),md5crypt): \
 endef
 object-suffixes-left = $(object-suffixes)
 include $(patsubst %,$(..)o-iterator.mk,$(object-suffixes))
+
+# 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)libcrypt.so: $(common-objpfx)libc.so