CFLAGS are a subset of CXXFLAGS. Since the compiler has been overridden to c++, the flags also need overriding to use c++ flags. Approved by: just fix it