GCC 4.2 branch comparision failure building Java

Ian Lance Taylor iant@google.com
Fri Mar 16 21:22:00 GMT 2007


Mark Mitchell <mark@codesourcery.com> writes:

> Ian Lance Taylor wrote:
> > "Joseph S. Myers" <joseph@codesourcery.com> writes:
> > 
> >> This is caused by --enable-generated-files-in-srcdir, as used by the 
> >> release script, hence not being seen by people configuring normally 
> >> without that option.
> 
> Thanks for the analysis!

Yes indeed, that was somewhat tricky.

> Can we do:
> 
> java_parse_c := java/parse.c
> ifeq ($(GENINSRC),)
> java_parse_c := $(srcdir)/$(java_parse_c)
> endif
> 
> $(java_parse_c): java/parse.y
>   -$(BISON) -t ... -o $@ $<
> 
> And, then, just have java/parse.o depend on $(java_parse_c)?

That is a better plan.  It seems like it ought to work.

Ian



More information about the Gcc mailing list