summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-03-31 17:07:47 +0000
committerUlrich Drepper <drepper@redhat.com>2000-03-31 17:07:47 +0000
commit84ddc586f6d0dc289d4c99d51393c3caf019b885 (patch)
treecf5d46086dc7ba929b77a49bff3c142f7f8f194d /elf
parentad08a5b62b63158a7e0291e59583a6955ba60264 (diff)
downloadglibc-84ddc586f6d0dc289d4c99d51393c3caf019b885.tar.gz
glibc-84ddc586f6d0dc289d4c99d51393c3caf019b885.tar.xz
glibc-84ddc586f6d0dc289d4c99d51393c3caf019b885.zip
(distribute): Add dep1.c, dep2.c, dep3.c, and dep4.c. (tests): Add order. (module-names): Add dep1, dep2, dep3, and dep4. Add dependencies for dep* modules and order. Define rule for order.out which checks the result.
Diffstat (limited to 'elf')
-rw-r--r--elf/Makefile19
1 files changed, 16 insertions, 3 deletions
diff --git a/elf/Makefile b/elf/Makefile
index 11bbf9957f..8aae5e00fc 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -42,7 +42,8 @@ distribute	:= $(rtld-routines:=.c) dynamic-link.h do-rel.h dl-machine.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 \
-		   ldconfig.h ldconfig.c cache.c readlib.c readelflib.c
+		   ldconfig.h ldconfig.c cache.c readlib.c readelflib.c \
+		   dep1.c dep2.c dep3.c dep4.c
 
 include ../Makeconfig
 
@@ -80,10 +81,11 @@ endif
 
 ifeq (yes,$(build-shared))
 tests = loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
-	constload1
+	constload1 order
 endif
 modules-names = testobj1 testobj2 testobj3 testobj4 testobj5 testobj6 \
-		testobj1_1 failobj constload2 constload3
+		testobj1_1 failobj constload2 constload3 \
+		dep1 dep2 dep3 dep4
 extra-objs += $(modules-names:=.os)
 
 include ../Rules
@@ -219,6 +221,9 @@ $(objpfx)testobj4.so: $(libdl)
 $(objpfx)testobj5.so: $(libdl)
 $(objpfx)testobj6.so: $(libdl)
 $(objpfx)failobj.so: $(objpfx)testobj6.so
+$(objpfx)dep1.so: $(objpfx)dep2.so $(objpfx)dep4.so
+$(objpfx)dep2.so: $(objpfx)dep3.so $(objpfx)dep4.so
+$(objpfx)dep4.so: $(objpfx)dep3.so
 
 $(test-modules): $(objpfx)%.so: $(objpfx)%.os
 	$(build-module)
@@ -262,3 +267,11 @@ endif
 
 $(objpfx)constload1: $(libdl)
 $(objpfx)constload1.out: $(objpfx)constload2.so $(objpfx)constload3.so
+
+$(objpfx)order: $(addprefix $(objpfx),dep4.so dep3.so dep2.so dep1.so)
+
+$(objpfx)order.out: $(objpfx)order
+	$(elf-objpfx)$(rtld-installed-name) \
+	  --library-path $(rpath-link)$(patsubst %,:%,$(sysdep-library-path)) \
+	  $(objpfx)order > $@
+	(echo "0123456789" | cmp $@ -) > /dev/null