ngie fc00834974 Fix up CXXSTD support originally added in r345708
r345708 worked for the base system, but unfortunately, caused a lot of
disruption for third-party packages that relied on C++, since bsd.sys.mk is
used by applications outside the base system. The defaults picked didn't match
the compiler's defaults and broke some builds that didn't specify a standard,
as well as some that overrode the value by setting `-std=gnu++14` (for
example) manually.

This change takes a more relaxed approach to appending `-std=${CXXSTD}` to
CXXFLAGS, by only doing so when the value is specified, as opposed to
overriding the standard set by an end-user. This avoids the need for having
to bake NOP default into bsd.sys.mk for supported compiler-toolchain
versions.

In order to make this change possible, add CXXSTD to Makefile snippets which
relied on the default value (c++11) added in r345708.

MFC after:      2 weeks
MFC with:       r345708, r346574
Reviewed by:    emaste
Reported by:    jbeich
Differential Revision: https://reviews.freebsd.org/D19895 (as part of a larger change)
2019-04-22 18:40:46 +00:00
..
2018-07-27 10:44:38 +00:00
2019-03-21 21:45:02 +00:00
2019-02-25 18:22:20 +00:00
2019-02-15 23:41:54 +00:00
2019-01-15 23:35:53 +00:00
2018-08-02 21:33:45 +00:00
2019-02-21 03:36:09 +00:00
2018-08-02 21:33:45 +00:00
2018-08-02 21:33:45 +00:00
2018-07-27 10:44:38 +00:00
2019-03-05 01:00:38 +00:00
2018-07-27 10:44:38 +00:00