aboutsummaryrefslogtreecommitdiff
path: root/elf/Makefile
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-28 10:23:59 +0000
committerRoland McGrath <roland@gnu.org>2002-08-28 10:23:59 +0000
commitdb26531364f91d577b48f8b97a0e8c33a6e7fff3 (patch)
treedcb62717b438b0ce63f42c152af7ab0c623194e3 /elf/Makefile
parent4124ff9971b78f172ee2a8ec07a5542d7a5a56d5 (diff)
downloadglibc-db26531364f91d577b48f8b97a0e8c33a6e7fff3.zip
glibc-db26531364f91d577b48f8b97a0e8c33a6e7fff3.tar.gz
glibc-db26531364f91d577b48f8b97a0e8c33a6e7fff3.tar.bz2
2002-08-28 Roland McGrath <roland@redhat.com>
* elf/Makefile (tests): List tst-tls1 and tst-tls2 unconditionally. [$(build-static) = yes] (tests): Add tst-tls1-static, tst-tls2-static. [$(build-static) = yes] (tests-static): New variable. ($(tests-static):%=$(objfpx)%.o)): New static pattern rule.
Diffstat (limited to 'elf/Makefile')
-rw-r--r--elf/Makefile24
1 files changed, 16 insertions, 8 deletions
diff --git a/elf/Makefile b/elf/Makefile
index ce38d2d..40d47a2 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -112,15 +112,19 @@ vpath %.c ../locale/programs
endif
endif
+tests = tst-tls1 tst-tls2
+ifeq (yes,$(build-static))
+tests-static = tst-tls1-static tst-tls2-static
+tests += $(tests-static)
+endif
ifeq (yes,$(build-shared))
-tests = loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
- constload1 order $(tests-vis-$(have-protected)) noload filter unload \
- reldep reldep2 reldep3 reldep4 $(tests-nodelete-$(have-z-nodelete)) \
- $(tests-nodlopen-$(have-z-nodlopen)) neededtest neededtest2 \
- neededtest3 neededtest4 unload2 lateglobal initfirst global \
- restest2 next dblload dblunload reldep5 reldep6 reldep7 tst-tls1 \
- tst-tls2 tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 tst-tls8 \
- circleload1
+tests += loadtest restest1 preloadtest loadfail multiload origtest resolvfail \
+ constload1 order $(tests-vis-$(have-protected)) noload filter unload \
+ reldep reldep2 reldep3 reldep4 $(tests-nodelete-$(have-z-nodelete)) \
+ $(tests-nodlopen-$(have-z-nodlopen)) neededtest neededtest2 \
+ neededtest3 neededtest4 unload2 lateglobal initfirst global \
+ restest2 next dblload dblunload reldep5 reldep6 reldep7 circleload1 \
+ tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 tst-tls8
test-srcs = tst-pathopt
tests-vis-yes = vismain
tests-nodelete-yes = nodelete
@@ -463,6 +467,10 @@ $(objpfx)reldep6.out: $(objpfx)reldep6mod3.so $(objpfx)reldep6mod4.so
$(objpfx)reldep7: $(libdl)
$(objpfx)reldep7.out: $(objpfx)reldep7mod1.so $(objpfx)reldep7mod2.so
+# The tst-*-static tests are the same tst-* programs, but linked statically.
+$(tests-static:%=$(objpfx)%.o): $(objpfx)tst-%-static.o: $(objpfx)tst-%.o
+ ln -f $< $@
+
$(objpfx)tst-tls3: $(objpfx)tst-tlsmod1.so
$(objpfx)tst-tls4: $(libdl)