From: Johannes Sixt Date: Sun, 13 Feb 2011 09:36:50 GMT Subject: Re: [PATCH] Don't optimize code in debug build Message-ID: <201102131036.51311.j6t@kdbg.org> In-Reply-To: On Sonntag, 13. Februar 2011, Piotr Krukowiecki wrote: > --- a/Makefile > +++ b/Makefile > @@ -262,7 +262,10 @@ endif > > # CFLAGS and LDFLAGS are for the users to override from the command line. > > -CFLAGS = -g -O2 -Wall > +CFLAGS = -g -Wall > +ifndef DEBUG > +CFLAGS += -O2 > +endif > LDFLAGS = > ALL_CFLAGS = $(CPPFLAGS) $(CFLAGS) > ALL_LDFLAGS = $(LDFLAGS) Instead of this, you can just write CFLAGS = -g -Wall in your config.mak. Is anything wrong with that? -- Hannes