This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/13485] [3.4 regression] Generated files no longer get messages extracted
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2004 14:16:28 -0000
- Subject: [Bug other/13485] [3.4 regression] Generated files no longer get messages extracted
- References: <20031224202101.13485.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-01-14 14:16 -------
Subject: Re: [3.4 regression] Generated files no longer
get messages extracted
On Wed, 14 Jan 2004, steven at gcc dot gnu dot org wrote:
> # Make-lang.in should add dependencies of po-generated on any generated
> # files which need to be scanned by gettext (usually Yacc-generated parsers).
> po-generated: $(parsedir)/c-parse.c options.c
>
> And the Make-lang.ins have a po-generated target too.
>
> Joseph, isn't this what proposed we should do?
po-generated has the *dependencies* - but the lists of files in
po-generated's dependency lists never get passed to exgettext. When the
generated files were in the source directory, the dependencies meant they
were generated before exgettext was called, which was enough as it
searches the source directory for files to extract messages from. Now the
generated files aren't in the source directory, exgettext needs to know
which generated files from the build directory to search for messages.
At present options.c is hard-coded in exgettext, but passing a last of all
the relevant files on the command line (rather than hardcoding options.c)
is the right solution.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13485