]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Compile libcxxrt as C++11, since it is only really used in combination
authordim <dim@FreeBSD.org>
Sun, 27 Mar 2016 00:37:54 +0000 (00:37 +0000)
committerdim <dim@FreeBSD.org>
Sun, 27 Mar 2016 00:37:54 +0000 (00:37 +0000)
commit6b368b3f0431a0c725668a6e97d8571dfad8132e
tree014aef060723b2c8e1f5a5f8a4ec00a059586fe2
parent0b3b29f07b2d3e0afbb4a7dd2c8697fc8b5d5c3a
Compile libcxxrt as C++11, since it is only really used in combination
with libc++, which is also C++11.  Also change one _Static_assert (which
is really C11) back into static_assert, like upstream.

This should help when compiling libcxxrt with newer versions of gcc,
which refuse to recognize any form of static assertions, if not
compiling for C++11 or higher.

While here, add -nostdinc++ to CFLAGS, to prevent picking up any C++
headers outside the source tree.
contrib/libcxxrt/guard.cc
lib/libcxxrt/Makefile