diff options
author | dim <dim@FreeBSD.org> | 2016-03-27 00:37:54 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2016-03-27 00:37:54 +0000 |
commit | 6b368b3f0431a0c725668a6e97d8571dfad8132e (patch) | |
tree | 014aef060723b2c8e1f5a5f8a4ec00a059586fe2 /lib/libcxxrt | |
parent | 0b3b29f07b2d3e0afbb4a7dd2c8697fc8b5d5c3a (diff) | |
download | FreeBSD-src-6b368b3f0431a0c725668a6e97d8571dfad8132e.zip FreeBSD-src-6b368b3f0431a0c725668a6e97d8571dfad8132e.tar.gz |
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.
Diffstat (limited to 'lib/libcxxrt')
-rw-r--r-- | lib/libcxxrt/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcxxrt/Makefile b/lib/libcxxrt/Makefile index d197361..b580618 100644 --- a/lib/libcxxrt/Makefile +++ b/lib/libcxxrt/Makefile @@ -20,7 +20,10 @@ SRCS+= libelftc_dem_gnu3.c\ guard.cc WARNS= 0 -CFLAGS+= -I${SRCDIR} +CFLAGS+= -I${SRCDIR} -nostdinc++ +.if empty(CXXFLAGS:M-std=*) +CXXFLAGS+= -std=c++11 +.endif VERSION_MAP= ${.CURDIR}/Version.map .include <bsd.lib.mk> |