This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Fix quick_exit to match C++11 specification.
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: Johan Karlsson <johan dot karlsson at enea dot com>
- Date: Fri, 3 Jun 2016 20:25:38 +0200
- Subject: Re: [PATCH] Fix quick_exit to match C++11 specification.
- Authentication-results: sourceware.org; auth=none
- References: <5751B292 dot 40109 at redhat dot com>
On 06/03/2016 06:38 PM, Carlos O'Donell wrote:
+ifneq (,$(CXX))
+CFLAGS-tst-quick_exit.o = -std=c++11
+LDLIBS-tst-quick_exit = -lstdc++
+else
+tests-unsupported += tst-quick_exit
+endif
I think you need this instead:
ifneq ($(have-cxx-thread_local),yes)
tests-unsupported += tst-quick-exit
endif
It may make sense to test destruction from a non-main thread, too (with
a separate test case, one test should not link against libpthread).
Florian