hi List,
i had a situation where the -Os option confused my debugger.
This little patch disables the -Os when -g is used.

please apply,

re,
 wh




--- Makefile.flags.org  2008-02-17 22:34:42.000000000 +0100
+++ Makefile.flags      2008-02-17 22:39:06.000000000 +0100
@@ -41,7 +41,7 @@
 CFLAGS += $(call cc-option,-Wmissing-prototypes -Wmissing-declarations,)
 endif

-CFLAGS += $(call cc-option,-Os -fno-builtin-strlen -finline-limit=0 
-fomit-frame-pointer -ffunction-sections -fdata-sections,)
+CFLAGS += $(call cc-option,-fno-builtin-strlen -finline-limit=0 
-fomit-frame-pointer -ffunction-sections -fdata-sections,)
 # -fno-guess-branch-probability: prohibit pseudo-random guessing
 # of branch probabilities (hopefully makes bloatcheck more stable):
 CFLAGS += $(call cc-option,-fno-guess-branch-probability,)
@@ -54,6 +54,8 @@

 ifeq ($(CONFIG_DEBUG),y)
 CFLAGS += $(call cc-option,-g)
+else
+CFLAGS += $(call cc-option,-Os)
 endif

 ifeq ($(CONFIG_BUILD_LIBBUSYBOX),y)
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to