This is the mail archive of the
mailing list for the GCC project.
Re: post linker phase - How To?
- From: Ian Lance Taylor <iant at google dot com>
- To: IainS <developer at sandoe-acoustics dot co dot uk>
- Cc: GCC Development <gcc at gcc dot gnu dot org>, Mike Stump <mikestump at comcast dot net>
- Date: Mon, 12 Apr 2010 15:30:18 -0700
- Subject: Re: post linker phase - How To?
- References: <DACB0DA1-165F-466A-ACA7-1D38E1AE4F96@sandoe-acoustics.co.uk>
IainS <email@example.com> writes:
> If I want to install a script (wrapper) that will end up installed in
> the same dir as gcc-xyz ...
> 1/ where do I put that in the GCC source tree?
Either in the gcc subdirectory or in some other top level
> 2/ what do I need to modify in the mechanics to arrange it to get
You just need to install it when "make install" is run.
But note that gcc-xyx is normally installed in the bin directory
$(bindir). That is the right place to install programs which you
expect the user to run directly. If this program will only ever be
run by the gcc driver, then you should install it in either the
directory where cc1 is installed, $(libsubdir), or in the directory
where helper tools like a cross-assembler are installed, $(tooldir).
A program which is installed in $(libsubdir) would normally live in
the gcc subdirectory. A program which is installed in $(tooldir)
could live anywhere; see, e.g., the binutils Makefiles for how to
> If I want to create a new post-collect phase --- is that already
> ized in gcc or is that a Bigger Job ;-) ??
As far as I know there is currently no post-collect phase.