summaryrefslogtreecommitdiffstats
path: root/make/compilers
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-18 00:42:53 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-18 00:42:53 +0000
commitc2646c880e607d8837ac0fd4b7b1b237c94d2e5e (patch)
tree065b2d5f7a66211727b14dcb54c77e9026509497 /make/compilers
parent789a953dec3a473d9987e1df935a20752c9307c2 (diff)
downloadrtems-c2646c880e607d8837ac0fd4b7b1b237c94d2e5e.tar.bz2
2002-11-17 Joel Sherrill <joel@OARcorp.com>
* leaf.cfg, main.cfg, compilers/gcc-target-default.cfg: Make build variants work for user applications post install.
Diffstat (limited to 'make/compilers')
-rw-r--r--make/compilers/gcc-target-default.cfg13
1 files changed, 6 insertions, 7 deletions
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg
index 4d7a6c5b3c..f09f57515b 100644
--- a/make/compilers/gcc-target-default.cfg
+++ b/make/compilers/gcc-target-default.cfg
@@ -52,17 +52,16 @@ CXXFLAGS_DEBUG_V+=-qrtems_debug
# when debugging, optimize flag: typically empty
# some compilers do allow optimization with their "-g"
-CFLAGS_OPTIMIZE_V=-g
-CXXFLAGS_OPTIMIZE_V=-g
+CFLAGS_OPTIMIZE_V+=-g
+CXXFLAGS_OPTIMIZE_V+=-g
# profile flag; use gprof(1)
-CFLAGS_PROFILE_V=-pg
-CXXFLAGS_PROFILE_V=-pg
+CFLAGS_PROFILE_V+=-pg
+CXXFLAGS_PROFILE_V+=-pg
ifndef AUTOMAKE
-# default is to optimize
-CFLAGS_OPTIMIZE =$(CFLAGS_OPTIMIZE_V)
-CXXFLAGS_OPTIMIZE=$(CXXFLAGS_OPTIMIZE_V)
+CFLAGS_$(VARIANT) =$(CFLAGS_$(VARIANT)_V)
+CXXFLAGS_$(VARIANT)=$(CXXFLAGS_$(VARIANT)_V)
endif
ifndef AUTOMAKE