[rtems commit] make: Add default flags
Sebastian Huber
sebh at rtems.org
Wed Feb 13 08:47:02 UTC 2013
Module: rtems
Branch: master
Commit: 83a2fad81bdfc7403003518ce94095b25f407c6a
Changeset: http://git.rtems.org/rtems/commit/?id=83a2fad81bdfc7403003518ce94095b25f407c6a
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Feb 12 13:58:52 2013 +0100
make: Add default flags
---
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)
More information about the vc
mailing list