This PR corrects an issue where CXXFLAGS
were mistakenly overridden by CFLAGS
. This behaviour was introduced in 7e7b3e42fa98b584ae60513a6774037bf677b8ce (from #22380).
On the master branch:
0$ gmake --no-print-directory -C depends print-x86_64_netbsd_CXXFLAGS
1x86_64_netbsd_CXXFLAGS=-pipe -std=c11
With this PR:
0$ gmake --no-print-directory -C depends print-x86_64_netbsd_CXXFLAGS
1x86_64_netbsd_CXXFLAGS=-pipe -std=c++20