From 1ed37385c66cbfe9221e9ee4025105a5370d1ef2 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 22 Feb 2013 23:37:55 +0000 Subject: [PATCH] Use -O2 without debugging. --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index a19a7613..f77c9abd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -26,13 +26,15 @@ endif if IS_GCC CFLAGS += -std=c99 if IS_DEBUG -CFLAGS += -g -ggdb -O0 +CFLAGS += -O0 -g CFLAGS += -Wno-long-long -Wall -W -Wnested-externs -Wformat=2 CFLAGS += -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations CFLAGS += -Wwrite-strings -Wshadow -Wpointer-arith -Wsign-compare CFLAGS += -Wundef -Wbad-function-cast -Winline -Wcast-align CFLAGS += -Wdeclaration-after-statement CPPFLAGS += -DDEBUG +else +CFLAGS += -O2 endif if IS_GCC4 CPPFLAGS += -iquote. -I/usr/local/include