https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106486
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- > which is often painful to do without structural Makefile changes. Not true. Most makefiles have CFLAGS and CXXFLAGS. And then use a common OPTFLAGS or something similar. It seems like setting CXXFLAGS directly to CFLAGS is wrong.