libgo patch committed: Add SPARC RTEMS specific file

Ralf Wildenhues Ralf.Wildenhues@gmx.de
Sun Jan 23 13:29:00 GMT 2011


* Ian Lance Taylor wrote on Sun, Jan 23, 2011 at 06:23:35AM CET:
> Ralf Wildenhues writes:
> > * Ian Lance Taylor wrote on Sat, Jan 22, 2011 at 03:01:40AM CET:
> >> If anybody knows of a simple way to use automake with files
> >> that may or may not exist, please let me know.  I'd prefer to avoid
> >> configure tests since they separate the test and the use in a way that I
> >> find hard to maintain over time.

> > if COND
> > foo_SOURCES += bar.go
> > endif
> >
> > or you can
> >
> > foo_SOURCES = $(computed)
> > EXTRA_foo_SOURCES = bar1.go bar2.go bar3.go

> Thanks, I know about those possibilities, but they aren't what I want,
> because they require me to determine whether the files exist in the
> configure script and to then use that determination in the Makefile.  I
> don't want to split things up that way.  I want to say something like
> 
> foo_SOURCES = `test -f f.c && echo f.c`

That doesn't work with the current dependency tracking machinery; it
needs to know the list of files at automake time in order to include
the relevant .Po and .Plo files in the Makefile.

This is something we may be able to address once we have machinery in
place to emit GNU make-specific code, and this Makefile is required to
work with GNU make only.

Sorry,
Ralf



More information about the Gcc-patches mailing list