[uClibc-cvs] uClibc Rules.mak,1.114,1.115
Erik Andersen
andersen at codepoet.org
Wed Dec 4 05:30:42 UTC 2002
Update of /var/cvs/uClibc
In directory winder:/tmp/cvs-serv20595
Modified Files:
Rules.mak
Log Message:
Override optimization settings when debugging
Index: Rules.mak
===================================================================
RCS file: /var/cvs/uClibc/Rules.mak,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -d -r1.114 -r1.115
--- Rules.mak 3 Dec 2002 23:12:09 -0000 1.114
+++ Rules.mak 4 Dec 2002 05:30:38 -0000 1.115
@@ -155,6 +155,12 @@
CPU_CFLAGS-y+=-mh -mint32 -fsigned-char
endif
+# Override optimization settings when debugging
+ifeq ($(DODEBUG),y)
+ OPTIMIZATION=$(call check_gcc,-Os,-O2)
+endif
+
+
# Add a bunch of extra pedantic annoyingly strict checks
WARNINGS+=-Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
# Some nice CFLAGS to work with
@@ -165,7 +171,6 @@
CFLAGS += -g
LDFLAGS:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
STRIPTOOL:= true -Since_we_are_debugging
- OPTIMIZATION=$(call check_gcc,-Os,-O2)
else
LDFLAGS := $(CPU_LDFLAGS-y) -s -shared --warn-common --warn-once -z combreloc
endif
More information about the uClibc-cvs
mailing list