]> git.sur5r.net Git - i3/i3/commitdiff
Makefile: only enable when -freorder-blocks-and-partition when DEBUG != 1
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 9 May 2010 20:45:21 +0000 (22:45 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 9 May 2010 20:45:21 +0000 (22:45 +0200)
…otherwise you don’t see variables in gdb

common.mk

index dcba69760bb90f77af15ac85dce34f7e11c1d5dc..6887470f1f6b63dee89b063680410f4a7c52f916 100644 (file)
--- a/common.mk
+++ b/common.mk
@@ -19,7 +19,6 @@ CFLAGS += -Wunused-value
 CFLAGS += -Iinclude
 CFLAGS += -I/usr/local/include
 CFLAGS += -DI3_VERSION=\"${GIT_VERSION}\"
-CFLAGS += -freorder-blocks-and-partition
 
 LDFLAGS += -lm
 LDFLAGS += -lxcb-event
@@ -62,6 +61,7 @@ CFLAGS += -gdwarf-2
 CFLAGS += -g3
 else
 CFLAGS += -O2
+CFLAGS += -freorder-blocks-and-partition
 endif
 
 # Don’t print command lines which are run