diff options
author | Florian Weimer <fweimer@redhat.com> | 2015-10-06 21:27:55 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2015-10-06 21:27:55 +0200 |
commit | 99e1dc0a688d6c25d3f422bc9f3fa29adb483339 (patch) | |
tree | 425b9d0a7670515c8ca8cbbbde0717a1fa180b96 /nptl/Makefile | |
parent | 6c9678ebd42358f931100130a368fafe375a0ba2 (diff) | |
download | glibc-99e1dc0a688d6c25d3f422bc9f3fa29adb483339.zip glibc-99e1dc0a688d6c25d3f422bc9f3fa29adb483339.tar.gz glibc-99e1dc0a688d6c25d3f422bc9f3fa29adb483339.tar.bz2 |
Add a test case for C++11 thread_local support
This requires a C++ compiler with thread_local support, and a new
configure check is needed.
Diffstat (limited to 'nptl/Makefile')
-rw-r--r-- | nptl/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/nptl/Makefile b/nptl/Makefile index aaca0a4..f3de49b 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -212,6 +212,8 @@ CFLAGS-recvfrom.c = -fexceptions -fasynchronous-unwind-tables CFLAGS-pt-system.c = -fexceptions LDLIBS-tst-once5 = -lstdc++ +CFLAGS-tst-thread_local1.o = -std=gnu++11 +LDLIBS-tst-thread_local1 = -lstdc++ tests = tst-typesizes \ tst-attr1 tst-attr2 tst-attr3 tst-default-attr \ @@ -283,7 +285,8 @@ tests = tst-typesizes \ tst-getpid3 \ tst-setuid3 \ tst-initializers1 $(addprefix tst-initializers1-,c89 gnu89 c99 gnu99) \ - tst-bad-schedattr + tst-bad-schedattr \ + tst-thread_local1 xtests = tst-setuid1 tst-setuid1-static tst-setuid2 \ tst-mutexpp1 tst-mutexpp6 tst-mutexpp10 test-srcs = tst-oddstacklimit @@ -403,6 +406,10 @@ ifeq (,$(CXX)) # These tests require a C++ compiler and runtime. tests-unsupported += tst-cancel24 tst-cancel24-static tst-once5 endif +# These tests require a C++ compiler and runtime with thread_local support. +ifneq ($(have-cxx-thread_local),yes) +tests-unsupported += tst-thread_local1 +endif include ../Rules |