about summary refs log tree commit diff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-04 08:00:00 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-04 08:00:00 +0000
commit591e1ffbf8db5e059b9bcf3bde6d7758f018a46d (patch)
treeb5e9db8cae0b20da5dfceb7c8e4bd91f84e3ac74 /elf/Makefile
parent589328764d60283e16442c9c9dcf818346356776 (diff)
downloadglibc-591e1ffbf8db5e059b9bcf3bde6d7758f018a46d.tar.gz
glibc-591e1ffbf8db5e059b9bcf3bde6d7758f018a46d.tar.xz
glibc-591e1ffbf8db5e059b9bcf3bde6d7758f018a46d.zip
Update.
1999-11-30  Andreas Jaeger  <aj@suse.de>

	Add ldconfig:
	* elf/Makefile (extra-objs): Added ldconfig-modules.
	(ldconfig-modules): New.
	Added vpath for xstrdup and xmalloc.
	Check for use-ldconfig instead of has-ldconfig.
	($(objpfx)ldconfig): New rule with dependencies.
	(distribute): Add new files.

	* sysdeps/unix/sysv/linux/sparc/readelflib.c: New file,
	developed together with Jakub Jelinek <jakub@redhat.com>.
	* sysdeps/generic/readelflib.c: Likewise.

	* elf/cache.c: New file.
	* elf/ldconfig.c: New file.
	* elf/ldconfig.h: New file.
	* elf/readlib.c: New file.

	* Makefile (install): Remove flag -d in ldconfig call.

	* configure.in: Rename has_ldconfig to use_ldconfig, set it to no
	by default.

	* config.make.in (has-ldconfig): Renamed to use-ldconfig, changed
	comment.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/elf/Makefile b/elf/Makefile
index ff5f44a819..422d278ce2 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -41,7 +41,8 @@ distribute	:= $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.h \
 		   dl-librecon.h interp.c sln.c dl-dst.h hp-timing.h \
 		   do-lookup.h sprof.c gen-trusted-dirs.awk \
 		   testobj1.c testobj2.c testobj3.c testobj4.c testobj5.c \
-		   testobj6.c testobj1_1.c failobj.c
+		   testobj6.c testobj1_1.c failobj.c \
+		   ldconfig.h ldconfig.c cache.c readlib.c readelflib.c
 
 include ../Makeconfig
 
@@ -64,10 +65,17 @@ install-bin	+= sprof
 others-static   = sln
 install-rootsbin = sln
 
-ifeq (yes,$(has-ldconfig))
+ifeq (yes,$(use-ldconfig))
 others-static	+= ldconfig
 others		+= ldconfig
 install-rootsbin += ldconfig
+
+ldconfig-modules := cache readlib xmalloc xstrdup
+extra-objs	+= $(ldconfig-modules:=.o)
+
+# To find xmalloc.c and xstrdup.c
+vpath %.c ../locale/programs
+
 endif
 
 ifeq (yes,$(build-shared))
@@ -191,6 +199,8 @@ $(objpfx)ldd: ldd.bash.in $(common-objpfx)soversions.mk \
 
 $(objpfx)sprof: $(libdl)
 
+$(objpfx)ldconfig: $(ldconfig-modules:%=$(objpfx)%.o)
+
 test-modules = $(addprefix $(objpfx),$(addsuffix .so,$(modules-names)))
 generated += $(addsuffix .so,$(modules-names))