Re: [PATCH] Don't optimize code in debug build
On Sonntag, 13. Februar 2011, Piotr Krukowiecki wrote:
Show 14 quoted lines
> --- 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