The -O6 flag is useless. -O3 will do the same.

http://stackoverflow.com/questions/3399821/gcc-o4-optimization-flag