I'm porting Dart to OpenBSD but outside the ports ecosystem this time around. I know ports have MODGCC4 which properly hides the base compilers and uses gcc4 from ports.
I want to essentially do the same outside the ports tree as I have to work on the master branch to add proper OpenBSD support in dart.
So far I had great progress by just setting the $CXX environment variable to eg++ and setting $CC to egcc but there is a spot in the build that seems to hard call g++ that I'm having issue localizing.
The issue is reported upstream but I would like to continue moving forward with the port while waiting for an answer.