diff options
Diffstat (limited to 'make/compilers')
-rw-r--r-- | make/compilers/gcc-target-default.cfg | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/make/compilers/gcc-target-default.cfg b/make/compilers/gcc-target-default.cfg index cb82b41a46..c25744af39 100644 --- a/make/compilers/gcc-target-default.cfg +++ b/make/compilers/gcc-target-default.cfg @@ -59,12 +59,15 @@ LIBC_LIBM=$(RTEMS_LIBC_DIR)/lib/libm.a endif else -CFLAGS_DEFAULT = $(CPU_DEFINES) $(CPU_CFLAGS) -Wall -ansi -fasm -g \ - -B$(PROJECT_RELEASE)/lib/ -specs bsp_specs -qrtems \ - $(INCLUDE_NETWORKING) $(DEFINES) - -ASMFLAGS=$(CPU_DEFINES) $(CPU_CFLAGS) -g -I$(srcdir) \ - -I$(PROJECT_RELEASE)/lib/include $(DEFINES) +# 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 + +CC += $(GCCSPECS) +CXX += $(GCCSPECS) + +CPPFLAGS += -I$(srcdir) $(INCLUDE_NETWORKING) # default location of Standard C Library ifndef LIBC_LIBC |