Re: Why CXX defaults to g++ instead of c++

2016-07-27 Thread Lei Zhang
2016-07-27 23:21 GMT+08:00 Paul Smith : > On Wed, 2016-07-27 at 21:39 +0800, Lei Zhang wrote: >> The problem is, somehow Make defaults CXX to g++ instead of c++, so >> my solution doesn't work. While CC already defaults to cc, is there >> any specific reason for CXX not

Why CXX defaults to g++ instead of c++

2016-07-27 Thread Lei Zhang
Hi, I'm trying to use clang as the default compiler in my system. Ideally I'd only need to link cc/c++ to clang, and still keep gcc in case it's needed. The problem is, somehow Make defaults CXX to g++ instead of c++, so my solution doesn't work. While CC already defaults to cc, is there any spec