From 47fd3a30139335207002481f747747e4e2a5bbb0 Mon Sep 17 00:00:00 2001 From: Austin Foxley Date: Sat, 23 Jan 2010 09:31:05 -0800 Subject: test: fix static build of nptl and tls tests also add needed -lpthread lines to timer_* tests, since the implementation uses pthread functions Signed-off-by: Austin Foxley --- test/tls/Makefile.in | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/tls') diff --git a/test/tls/Makefile.in b/test/tls/Makefile.in index 69a8eaf27..839824df1 100644 --- a/test/tls/Makefile.in +++ b/test/tls/Makefile.in @@ -7,10 +7,16 @@ TESTS := tst-tls1 tst-tls2 tst-tls3 tst-tls4 tst-tls5 tst-tls6 tst-tls7 \ tst-tls1-static tst-tls2-static tst-tls9-static TESTS_DISABLED := tst-tls1-static tst-tls2-static tst-tls9-static +#all these tests require shared libraries +ifeq ($(HAVE_SHARED),) +TESTS_DISABLED := $(TESTS) +endif + # All these tests need tls.h, which is not installed with glibc GLIBC_TESTS_DISABLED := $(addsuffix _glibc,$(filter-out $(TESTS_DISABLED),$(TESTS))) + PTDIR := $(top_builddir)libpthread/nptl EXTRA_CFLAGS := -DNOT_IN_libc=1 \ -- cgit v1.2.3