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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

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

Lei Zhang
Hi,

I'm trying to replace gcc with clang as the default compiler in my
system. Ideally I just link cc/c++ to clang, and gcc can still be kept
in case it's needed.

However, somehow `make` defaults CC to cc, but CXX to g++ instead of
c++, so my solution doesn't work with C++ files. I'm curious why not
default CXX to c++? Will there be any problem if I patch `make` to do
so?

(please CC me when replying, as I'm not subscribed to this list)

Regards,
Lei

_______________________________________________
Help-make mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/help-make