This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Fix --enable-build-with-cxx build
> Revised version, only 33 files modified now (instead of 51). We compile
> the C files for the compiler proper (and gnatbind) with the C++ compiler,
> but we keep compiling them with the C compiler in the other cases (library
> & tools). I think that this is in keeping with the other compilers (e.g.
> libgcc is still compiled with the C compiler).
This introduced a circular dependency in the Makefile. Fixed thusly.
2011-07-21 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/Make-lang.in (GNAT1_ADA_OBJS): Move ada/b_gnat1.o to...
(GNAT1_OBJS): ...here.
--
Eric Botcazou
Index: gcc-interface/Make-lang.in
===================================================================
--- gcc-interface/Make-lang.in (revision 176495)
+++ gcc-interface/Make-lang.in (working copy)
@@ -336,9 +336,9 @@ GNAT_ADA_OBJS = \
ada/widechar.o
# Object files for gnat executables
-GNAT1_ADA_OBJS = $(GNAT_ADA_OBJS) ada/back_end.o ada/gnat1drv.o ada/b_gnat1.o
+GNAT1_ADA_OBJS = $(GNAT_ADA_OBJS) ada/back_end.o ada/gnat1drv.o
-GNAT1_OBJS = $(GNAT1_C_OBJS) $(GNAT1_ADA_OBJS)
+GNAT1_OBJS = $(GNAT1_C_OBJS) $(GNAT1_ADA_OBJS) ada/b_gnat1.o
GNATBIND_OBJS = \
ada/adaint.o \