diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 16:08:17 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-05-21 16:08:17 +0000 |
commit | 079f7c691f73009829dc8f36c0a737919fe93aaf (patch) | |
tree | 21e48ff4005c569f1da545e771653e3ba82ea88c | |
parent | 00b97dc29c466d7d4462a81cd7de975bb80639d3 (diff) |
Depend on libc.so for dynamic loading and for Linux ld.so.
-rw-r--r-- | db/Makefile | 5 | ||||
-rw-r--r-- | login/Makefile | 8 | ||||
-rw-r--r-- | math/Makefile | 5 | ||||
-rw-r--r-- | md5-crypt/Makefile | 5 | ||||
-rw-r--r-- | nis/Makefile | 2 | ||||
-rw-r--r-- | resolv/Makefile | 2 |
6 files changed, 23 insertions, 4 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 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 diff --git a/math/Makefile b/math/Makefile index 550e9d6c50..7665fb97e5 100644 --- a/math/Makefile +++ b/math/Makefile @@ -98,3 +98,8 @@ override CFLAGS += -Wno-uninitialized -Wno-write-strings $(objpfx)libieee.a: $(objpfx)ieee-math.o rm -f $@ ln $< $@ + +# 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)libm.so: $(common-objpfx)libc.so 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 diff --git a/nis/Makefile b/nis/Makefile index 98ef4090a2..e2be7f965f 100644 --- a/nis/Makefile +++ b/nis/Makefile @@ -81,7 +81,7 @@ $(objpfx)libnss_nis.so: $(objpfx)libnsl.so$(libnsl.so-version) \ # 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 +$(services:%=$(objpfx)libnss_%.so) $(objpfx)libnsl.so: $(common-objpfx)libc.so ifeq ($(build-shared),yes) diff --git a/resolv/Makefile b/resolv/Makefile index 41623cd067..7b99aee550 100644 --- a/resolv/Makefile +++ b/resolv/Makefile @@ -56,4 +56,4 @@ CPPFLAGS += -Dgethostbyname=res_gethostbyname \ $(objpfx)libresolv.so: $(common-objpfx)libc.so # The DNS NSS modules needs the resolver. -$(objpfx)libnss_dns.so: $(objpfx)libresolv.so +$(objpfx)libnss_dns.so: $(objpfx)libresolv.so $(common-objpfx)libc.so |