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