> Paolo did suggest something like that:
>
> http://gcc.gnu.org/ml/gcc/2009-06/msg00639.html
> <<
> I think you should rather do
>
>       "CC=../../xgcc -B../../" \
> +     "CXX=../../g++ -B../../" \
>         "CFLAGS=$(CFLAGS) $(WARN_CFLAGS)" \
> +       "CXXFLAGS=$(CXXFLAGS) $(WARN_CFLAGS)" \
>
> and copy the setting of COMPILER and LINKER from gcc/Makefile.in into
> gcc/ada/gcc-interface/Makefile.in:
>
> ENABLE_BUILD_WITH_CXX = @ENABLE_BUILD_WITH_CXX@
> ifneq ($(ENABLE_BUILD_WITH_CXX),yes)
> COMPILER = $(CC)
> COMPILER_FLAGS = $(CFLAGS)
> LINKER = $(CC)
> LINKER_FLAGS = $(CFLAGS)
> else
> COMPILER = $(CXX)
> COMPILER_FLAGS = $(CXXFLAGS)
> LINKER = $(CXX)
> LINKER_FLAGS = $(CXXFLAGS)
> endif

I'm not sure because I don't think we want to compile the C files of the Ada 
runtime with the C++ compiler.  We want to do that only for the compiler.

-- 
Eric Botcazou

Reply via email to