This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: automatic dependencies for gcc
>>>>> "Ralf" == Ralf Wildenhues <Ralf.Wildenhues@gmx.de> writes:
Ralf> Yet another thing: you removed this from objcp/Make-lang.in:
[...]
Ralf> which leads to a build failure:
Here is the fix I'm checking in. Two bugs: used the wrong base for
the name of _OBJS, and the source file for this comes from a different
directory, so needs an explicit rule.
This still doesn't fully build, due to earlier reported problems with
ObjC++, but at least make tries to run the compile now.
BTW I had not noticed before that objcp-warn also passes in a -D and
some -I options. This does not seem very robust to me.
Tom
objcp/ChangeLog:
2008-03-25 Tom Tromey <tromey@redhat.com>
* Make-lang.in (obj-c++_OBJS): Rename from objcp_OBJS.
(objcp/objcp-act.o): Restore target.
Index: objcp/Make-lang.in
===================================================================
--- objcp/Make-lang.in (revision 133526)
+++ objcp/Make-lang.in (working copy)
@@ -51,7 +51,7 @@
OBJCXX_OBJS = objcp/objcp-act.o objcp/objcp-lang.o objcp/objcp-decl.o \
$(CXX_AND_OBJCXX_OBJS)
-objcp_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
+obj-c++_OBJS = $(OBJCXX_OBJS) cc1objplus-checksum.o
cc1objplus-dummy$(exeext): $(OBJCXX_OBJS) dummy-checksum.o $(BACKEND) \
$(LIBDEPS)
@@ -65,6 +65,10 @@
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
$(OBJCXX_OBJS) cc1objplus-checksum.o $(BACKEND) $(LIBS) $(GMPLIBS)
+# Note that the source file is in a different directory.
+objcp/objcp-act.o: objc/objc-act.c
+ $(COMPILE) $<
+
po-generated:
#