set -O0 for debug builds
authorFelix Fietkau <nbd@openwrt.org>
Tue, 29 Jan 2008 18:20:10 +0000 (19:20 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 29 Jan 2008 18:20:10 +0000 (19:20 +0100)
Makefile

index ecfa8bc9723c43708f7e09c2195ed1b342cd6301..c136915a734565b736d66bacbd41245e3feff79c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,7 @@
 COPTS=-O2
 CFLAGS=$(COPTS) -fPIC -Wall -pedantic -std=gnu99 -Wno-unused -Werror
 ifneq ($(DEBUG),)
+  COPTS = -O0
   CFLAGS += -g3 -DDEBUG_ALL
 endif