0369db718c
CCFLAGS is used by gcc and g++ compiler. So CFLAGS should be used for gcc to avoid passing gcc flags to g++.
Documents here http://www.rt-thread.org/dokuwiki/doku.php?id=s3c2440