[PATCH 6/6] make: Add default flags

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Feb 12 13:01:03 UTC 2013


---
 c/src/make/compilers/gcc-target-default.cfg |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/c/src/make/compilers/gcc-target-default.cfg b/c/src/make/compilers/gcc-target-default.cfg
index 5563475..d4684d5 100644
--- a/c/src/make/compilers/gcc-target-default.cfg
+++ b/c/src/make/compilers/gcc-target-default.cfg
@@ -44,16 +44,13 @@ CPLUS_LD_LIBS += $(PROJECT_RELEASE)/lib/librtems++$(LIBSUFFIX_VA)
 endif
 
 # debug flag;
-CFLAGS_DEBUG_V+=
-CXXFLAGS_DEBUG_V+=
-
-CFLAGS_DEBUG_V+=
-CXXFLAGS_DEBUG_V+=
+CFLAGS_DEBUG_V ?= -O0 -g
+CXXFLAGS_DEBUG_V ?= -O0 -g
 
 # when debugging, optimize flag: typically empty
 # some compilers do allow optimization with their "-g"
-CFLAGS_OPTIMIZE_V+=
-CXXFLAGS_OPTIMIZE_V+=
+CFLAGS_OPTIMIZE_V ?= -O2 -g
+CXXFLAGS_OPTIMIZE_V ?= -O2 -g
 
 ifndef AUTOMAKE
 CPPFLAGS_$(VARIANT)=$(CPPFLAGS_$(VARIANT)_V)
-- 
1.7.7




More information about the devel mailing list