[PATCH] Fix quick_exit to match C++11 specification.

Florian Weimer fweimer@redhat.com
Fri Jun 3 18:25:00 GMT 2016


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



More information about the Libc-alpha mailing list