use CXXFLAGS in place of CFLAGS