aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-22 23:37:55 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-22 23:37:55 +0000
commit1ed37385c66cbfe9221e9ee4025105a5370d1ef2 (patch)
treee500268cc5e1322af4bb66bb8fa6d7b35cd355a4
parent3a2e9d805a80e683078994d86a5390bf5deed9fc (diff)
downloadrtmux-1ed37385c66cbfe9221e9ee4025105a5370d1ef2.tar.gz
rtmux-1ed37385c66cbfe9221e9ee4025105a5370d1ef2.tar.bz2
rtmux-1ed37385c66cbfe9221e9ee4025105a5370d1ef2.zip
Use -O2 without debugging.
-rw-r--r--Makefile.am4
1 files changed, 3 insertions, 1 deletions
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