On 09/15/2015 10:31 AM, Raphael Kubo da Costa wrote:
> Add a test for _Thread_local support and only build CMake itself with
> C11 support if it works.
>
> Bug: http://www.cmake.org/Bug/view.php?id=15741
Thanks, applied:
Avoid using C11 to build CMake if _Thread_local support is broken
Support for C11's _Thread_local was introduced in GCC in the 4.9 series,
even though we make the C11 compiler flags available in CMake with GCC
>= 4.6.
FreeBSD's runetype.h uses _Thread_local, which causes CMake's own build
to fail when using GCC < 4.9 and -std=gnu11: