ex17 ex18 tst-cancel tst-context bug-sleep
test-srcs = tst-signal
+ifeq ($(build-static),yes)
+tests += tststatic
+tests-static += tststatic
+endif
+
ifeq (yes,$(build-shared))
tests-nodelete-yes = unload
endif
# Make sure we link with the thread library.
ifeq ($(build-shared),yes)
-$(addprefix $(objpfx),$(tests) $(test-srcs)): $(objpfx)libpthread.so
+$(addprefix $(objpfx), \
+ $(filter-out $(tests-static), \
+ $(tests) $(test-srcs))): $(objpfx)libpthread.so
$(addprefix $(objpfx),$(librt-tests)): $(common-objpfx)rt/librt.so
$(objpfx)unload: $(common-objpfx)dlfcn/libdl.so
else
$(librt-tests:%=$(objpfx)%-bp): $(common-objpfx)rt/librt_b.a
endif
+ifeq ($(build-static),yes)
+$(addprefix $(objpfx), $(tests-static)): $(objpfx)libpthread.a
+endif
+
ifeq ($(build-shared),yes)
vpath pt-initfini.c $(full_config_sysdirs)
ifeq (yes,$(build-shared))
tests: $(objpfx)tst-signal.out
$(objpfx)tst-signal.out: tst-signal.sh $(objpfx)tst-signal
- $(SHELL) -e $< $(common-objpfx)
+ $(SHELL) -e $< $(common-objpfx) > $@
endif
endif