CXXFLAGS defaults to CCFLAGS which was causing duplicated or extra compile flags being set for g++. Fix is to use env.Replace() rather than .Append() the first time we set CXXFLAGS in the build environment.
CXXFLAGS defaults to CCFLAGS which was causing duplicated or extra compile flags being set for g++. Fix is to use env.Replace() rather than .Append() the first time we set CXXFLAGS in the build environment.