ngie 777d26ce52 Standardize -std=c++* as CXXSTD`
CXXSTD was added as the C++ analogue to CSTD.

CXXSTD defaults to `-std=c++11` with supporting compilers; `-std=gnu++98`,
otherwise for older versions of g++.

This change standardizes the CXXSTD variable, originally added to
googletest.test.inc.mk as part of r345203.

As part of this effort, convert all `CXXFLAGS+= -std=*` calls to use `CXXSTD`.

Notes:

This value is not sanity checked in bsd.sys.mk, however, given the two
most used C++ compilers on FreeBSD (clang++ and g++) support both modes, it is
likely to work with both toolchains. This method will be refined in the future
to support more variants of C++, as not all versions of clang++ and g++ (for
instance) support C++14, C++17, etc.

Any manual appending of `-std=*` to `CXXFLAGS` should be replaced with CXXSTD.
Example:

Before this commit:
```
CXXFLAGS+=	-std=c++14
```

After this commit:
```
CXXSTD=	c++14
```

Reviewed by:	asomers
Approved by:	emaste (mentor)
MFC after:	1 month
MFC with:	r345203, r345704, r345705
Relnotes:	yes
Tested with:	make tinderbox
Differential Revision:	https://reviews.freebsd.org/D19732
2019-03-29 18:45:27 +00:00
..
2017-10-31 00:07:04 +00:00
2018-01-29 14:15:44 +00:00
2019-01-12 12:35:02 +00:00
2018-12-23 01:05:52 +00:00
2018-11-18 12:23:03 +00:00
2018-09-11 20:51:34 +00:00
2018-11-07 21:01:14 +00:00
2017-10-31 00:07:04 +00:00
2019-03-22 17:37:14 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-09-11 20:51:34 +00:00
2017-10-31 00:07:04 +00:00
2019-03-29 18:45:27 +00:00
2017-10-31 00:07:04 +00:00
2018-04-25 18:56:27 +00:00
2018-09-19 07:09:09 +00:00
2017-10-31 00:07:04 +00:00
2019-01-28 02:00:39 +00:00
2017-12-01 21:44:23 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2019-01-07 08:29:27 +00:00
2018-11-12 17:59:15 +00:00
2017-10-31 00:07:04 +00:00
2018-03-02 23:31:55 +00:00
2017-11-20 08:52:33 +00:00
2017-10-31 00:07:04 +00:00
2018-11-04 16:58:55 +00:00
2018-09-20 10:58:52 +00:00
2018-01-06 15:52:28 +00:00
2017-10-31 00:07:04 +00:00
2019-03-09 01:12:59 +00:00
2017-10-31 00:07:04 +00:00
2018-11-20 00:06:53 +00:00
2018-07-03 19:09:46 +00:00
2018-06-25 11:44:56 +00:00
2017-10-31 00:07:04 +00:00
2018-08-11 02:56:43 +00:00
2018-06-22 09:10:50 +00:00
2019-02-21 15:08:25 +00:00
2018-09-11 20:51:34 +00:00
2017-12-28 05:33:39 +00:00
2018-05-04 14:39:32 +00:00
2018-03-29 02:13:58 +00:00
2018-07-29 07:51:42 +00:00
2019-01-21 15:27:58 +00:00
2017-10-31 00:07:04 +00:00
2018-11-12 07:14:34 +00:00
2018-06-27 19:29:15 +00:00
2017-10-31 00:07:04 +00:00
2019-02-06 18:50:48 +00:00
2017-10-31 00:07:04 +00:00
2018-05-23 01:20:31 +00:00
2017-06-16 06:29:21 +00:00
2017-06-16 06:29:21 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2018-12-29 21:18:01 +00:00