Change "-g" to "-g2", and add "-frecord-gcc-switches"