diff options
Diffstat (limited to '')
-rw-r--r-- | make/Templates/Makefile.leaf | 7 | ||||
-rw-r--r-- | make/compilers/gcc-target-default.cfg | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/make/Templates/Makefile.leaf b/make/Templates/Makefile.leaf index 6f098d4b50..8d610b1c0e 100644 --- a/make/Templates/Makefile.leaf +++ b/make/Templates/Makefile.leaf @@ -45,6 +45,13 @@ DEFINES += CPPFLAGS += CFLAGS += +# +# CFLAGS_DEBUG_V are used when the `make debug' target is built. +# To link your application with the non-optimized RTEMS routines, +# uncomment the following line: +# CFLAGS_DEBUG_V += -qrtems_debug +# + LD_PATHS += xxx-your-EXTRA-library-paths-go-here, if any LD_LIBS += xxx-your-libraries-go-here eg: -lvx LDFLAGS += diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg index 32f40c5e96..c832a08143 100644 --- a/make/compilers/gcc-target-default.cfg +++ b/make/compilers/gcc-target-default.cfg @@ -71,6 +71,10 @@ endif # debug flag; typically -g CFLAGS_DEBUG_V+=-g -Wno-unused +ifeq ($(RTEMS_USE_GCC272),no) +CFLAGS_DEBUG_V+=-qrtems_debug +endif + # when debugging, optimize flag: typically empty # some compilers do allow optimization with their "-g" #CFLAGS_DEBUG_OPTIMIZE_V= |