summaryrefslogtreecommitdiff
path: root/login
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-05-21 16:08:17 +0000
committerUlrich Drepper <drepper@redhat.com>1997-05-21 16:08:17 +0000
commit079f7c691f73009829dc8f36c0a737919fe93aaf (patch)
tree21e48ff4005c569f1da545e771653e3ba82ea88c /login
parent00b97dc29c466d7d4462a81cd7de975bb80639d3 (diff)
Depend on libc.so for dynamic loading and for Linux ld.so.
Diffstat (limited to 'login')
-rw-r--r--login/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/login/Makefile b/login/Makefile
index 65982661b6..6c10a5aff4 100644
--- a/login/Makefile
+++ b/login/Makefile
@@ -1,4 +1,4 @@
-# Copyright (C) 1996 Free Software Foundation, Inc.
+# Copyright (C) 1996, 1997 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -35,5 +35,9 @@ extra-libs-others := $(extra-libs)
libutil-routines:= login login_tty logout logwtmp pty
-
include ../Rules
+
+# 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)libutil.so: $(common-objpfx)libc.so