about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makeconfig b/Makeconfig
index b47ccda686..40f3a10674 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -345,8 +345,12 @@ endif
 
 # Default flags to pass the C compiler.
 ifndef default_cflags
+ifeq ($(release),stable)
+default_cflags := -g -O2
+else
 default_cflags := -g -O
 endif
+endif
 
 # Flags to pass the C compiler when assembling preprocessed assembly code
 # (`.S' files).  On some systems the assembler doesn't understand the `#' line