Prevent implicit -std=* passing from NXCFLAGS to NXCXXFLAGS.
commit259eb49bd722586904361b7652b5ad96ede682b5
authorzrj <rimvydas.jasinskas@gmail.com>
Wed, 8 Feb 2017 16:40:21 +0000 (8 18:40 +0200)
committerzrj <zrj@dragonflybsd.org>
Fri, 10 Feb 2017 10:39:19 +0000 (10 12:39 +0200)
tree77dd44db25cf1243cd240a0a32fd76944176ae06
parent5d1ffe6901cf1d06d4610b9460d6d709fd1a30ae
Prevent implicit -std=* passing from NXCFLAGS to NXCXXFLAGS.

C and c++ standards are not cross compatible, this is a major issue with clang
import into the base that explictly requires at least the -std=c++11 standard.
It gets complicated because even tablegen utilities used as buildtools depend
explictly on c++11. This implies that we no longer can avoid libstdc++ usage
in hostlib/hostprog infrastructure.

While there, explcitly filter out -flto options from host native tools FLAGS
and add a missing rule to allow generating host native c++ utilities for the
use in buildworld.
share/mk/sys.mk