Date: Wed, 12 May 1999 09:57:35 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Failed compilation of GCC 2.8.1 In-Reply-To: <373b164b.4977938@noticias.iies.es> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Tue, 11 May 1999, Guillermo Rodriguez Garcia wrote: > I read somewhere that with gcc you can debug optimized programs, so I > think -O2 shouldn't strip debug info. The problem happens because the default value of CFLAGS in the Makefile is "-g", which causes GCC to emit debug info. Setting CFLAGS to -O2 doesn't strip the debug info, but GCC will not produce the debug info because there's no -g in CFLAGS. "make CFLAGS=-O2" overrides the value of CFLAGS in the Makefile, not adds to whatever the Makefile says.