diff options
Diffstat (limited to '')
-rw-r--r-- | c/src/make/compilers/gcc-target-default.cfg | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/c/src/make/compilers/gcc-target-default.cfg b/c/src/make/compilers/gcc-target-default.cfg index 4d7a6c5b3c..acbdb76a5d 100644 --- a/c/src/make/compilers/gcc-target-default.cfg +++ b/c/src/make/compilers/gcc-target-default.cfg @@ -28,10 +28,13 @@ CXXFLAGS = $(CFLAGS_DEFAULT) $(XCXXFLAGS) ASFLAGS = $(CPU_ASFLAGS) $(XASFLAGS) # NOTE: GCCSPECS probably belongs to CPPFLAGS -# Unfortunately, many custom/*.cfg files do not pass CPPFLAGS -# to their gcc-2.8 make-exe rules -GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems - +GCCSPECS_OPTIMIZE_V = +GCCSPECS_DEBUG_V = -qrtems_debug +GCCSPECS_PROFILE_V = + +GCCSPECS = -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems +GCCSPECS += $(GCCSPECS_$(VARIANT_V)_V) + CC += $(GCCSPECS) CXX += $(GCCSPECS) |