4e66d4e676
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.