aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.flags b/Makefile.flags
index c7a805877..513b6ebb2 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -58,14 +58,14 @@ CFLAGS += $(call cc-option,-falign-functions=1 -falign-jumps=1 -falign-labels=1
58#CFLAGS += $(call cc-option,-Wconversion,) 58#CFLAGS += $(call cc-option,-Wconversion,)
59 59
60ifneq ($(CONFIG_DEBUG),y) 60ifneq ($(CONFIG_DEBUG),y)
61CFLAGS += $(call cc-option,-Os,) 61CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
62else 62else
63CFLAGS += $(call cc-option,-g,) 63CFLAGS += $(call cc-option,-g,)
64#CFLAGS += "-D_FORTIFY_SOURCE=2" 64#CFLAGS += "-D_FORTIFY_SOURCE=2"
65ifeq ($(CONFIG_DEBUG_PESSIMIZE),y) 65ifeq ($(CONFIG_DEBUG_PESSIMIZE),y)
66CFLAGS += $(call cc-option,-O0,) 66CFLAGS += $(call cc-option,-O0,)
67else 67else
68CFLAGS += $(call cc-option,-Os,) 68CFLAGS += $(call cc-option,-Os,$(call cc-option,-O2,))
69endif 69endif
70endif 70endif
71 71