(fixed) Re: [PATCH] Remember configure's options for later recall
Geoff Keating
geoffk@cygnus.com
Thu Oct 5 14:47:00 GMT 2000
Phil Edwards <pedwards@disaster.jaj.com> writes:
> Sigh. I had water on the brain, and then the weather got cold, and the
> water froze over, and so a few things slipped my mind. (Ha.)
>
> The previous patch introduced another source file, which isn't picked up
> by enough binaries. This patch works with /all/ front-ends by placing the
> string in a static variable in gcc.o (at the cost of a generated header
> instead of generated source). (The ideal linkage solution for this kind
> of thing would be to put the string in version.o, which is already linked
> with everything that would use this new string. But that would require
> modifying $srcdir contents at configure time, eeeek.)
Try generating $objdir/version.c from $srcdir/version.c.in; this is
how such things are generally handled.
--
- Geoffrey Keating <geoffk@cygnus.com>
More information about the Gcc-patches
mailing list