On Thu, Sep 07, 2023 at 11:23:14AM +0100, Julian Smith wrote: > devel/gmake defaults to CC=cc but CXX=g++. > > It doesn't seem to make sense to mix `cc`, the system C compiler > (typically clang-based) with `g++`, the non-system GNU C++ compiler. > > I've been routinely running gmake with a `CXX=c++` prefix in order to > build various C/C++ projects. > > Here's a new patch file that fixes the port for me: > > /usr/ports/devel/gmake/patches/patch-src_default_c > ==== > Index src/default.c > --- src/default.c.orig > +++ src/default.c > @@ -530,7 +530,7 @@ > "OBJC", "gcc", > #else > "CC", "cc", > - "CXX", "g++", > + "CXX", "c++", > "OBJC", "cc", > #endif > ==== > > > - Jules > > -- > http://op59.net > > This is definitely the kind of change that, unfortunately, requires a full bulk build to be sure.
Let's hope somebody will try it out, though we're rather busy with llvm16 at the moment.