diff options
-rw-r--r-- | linuxthreads/ChangeLog | 7 | ||||
-rw-r--r-- | linuxthreads/Makefile | 15 |
2 files changed, 19 insertions, 3 deletions
diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 174b34f441..6be38e11d2 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,10 @@ +2002-01-12 Andreas Schwab <schwab@suse.de> + + * Makefile (test-srcs): Add tst-signal. + (tests): Run tst-signal. + (distribute): Add tst-signal.sh. + * tst-signal.c, tst-signal.sh: New files. + 2002-01-14 Andreas Jaeger <aj@suse.de> * sysdeps/x86_64/pt-machine.h (INIT_THREAD_SELF): Avoid warning. diff --git a/linuxthreads/Makefile b/linuxthreads/Makefile index cf01102db0..2237482f3b 100644 --- a/linuxthreads/Makefile +++ b/linuxthreads/Makefile @@ -25,7 +25,7 @@ linuxthreads-version := $(shell sed -n 's/^.*$(subdir)-\([0-9.]*\).*$$/\1/p' \ Banner) headers := pthread.h semaphore.h -distribute := internals.h queue.h restart.h spinlock.h +distribute := internals.h queue.h restart.h spinlock.h tst-signal.sh routines := weaks no-tsd @@ -61,6 +61,7 @@ librt-tests = ex10 ex11 tests = ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 $(librt-tests) ex12 ex13 joinrace \ tststack $(tests-nodelete-$(have-z-nodelete)) ecmutex ex14 ex15 ex16 \ ex17 ex18 tst-cancel tst-context +test-srcs = tst-signal ifeq (yes,$(build-shared)) tests-nodelete-yes = unload @@ -88,11 +89,11 @@ $(objpfx)libpthread.so: $(common-objpfx)libc.so \ # Make sure we link with the thread library. ifeq ($(build-shared),yes) -$(addprefix $(objpfx),$(tests)): $(objpfx)libpthread.so +$(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.so $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so $(objpfx)unload: $(common-objpfx)dlfcn/libdl.so else -$(addprefix $(objpfx),$(tests)): $(objpfx)libpthread.a +$(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.a $(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.a endif ifeq ($(build-bounded),yes) @@ -128,3 +129,11 @@ ifeq (yes,$(build-static-nss)) otherlibs += $(nssobjdir)/libnss_files.a $(resolvobjdir)/libnss_dns.a \ $(resolvobjdir)/libresolv.a endif + +ifeq (no,$(cross-compiling)) +ifeq (yes,$(build-shared)) +tests: $(objpfx)tst-signal.out +$(objpfx)tst-signal.out: tst-signal.sh $(objpfx)tst-signal + $(SHELL) -e $< $(common-objpfx) +endif +endif |