This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gengtype plugin improvement last4round -patch 7 [install]
On Fri, 26 Nov 2010, Basile Starynkevitch wrote:
> On Thu, 25 Nov 2010 22:20:40 +0000 (UTC)
> "Joseph S. Myers" <joseph@codesourcery.com> wrote:
>
> > On Thu, 25 Nov 2010, Basile Starynkevitch wrote:
> >
> > > +# Additional build executables to be installed.
> > > +ADDITIONAL_BUILD_PROGRAMS= build/gengtype$(build_exeext)
> >
> > It is definitely wrong to install anything built for the build system.
> > Anything installed in libexecsubdir should be built for the host, not the
> > build system.
>
> Ok, but what do you suggest instead?
If you wish to install gengtype, you must build it twice, for both the
build and host systems, use the build-system copy as part of the build
process but install the host-system copy. This is just like what is done
with fixincludes: the build-system copy is used in the build process but
the host-system copy is installed for potential later use in regenerating
fixed headers after changes in system headers.
--
Joseph S. Myers
joseph@codesourcery.com