This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
What's the best way of including extra files for gcc lib dir?
- From: Kean Johnston <jkj at sco dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 17 Jul 2005 16:26:50 -0700
- Subject: What's the best way of including extra files for gcc lib dir?
- Reply-to: jkj at sco dot com
Hi All,
What is the best way of including target-specific files in the
version-specific gcc library directory? I need to include a
file that will be referenced from LINK_SPEC as "gcc.map%s".
IE, in the same place the startup files are located. So
really I need to know two things:
1) How to I persuade the GCC makefile to install it, and
2) Whats the best place to put it in the source tree?
Bear inmind this must be available during bootstrapping too.
I suspect it may require additions to "extra_parts" in config.gcc,
and then suitable rules for creating it in the t-* fragment.
Is this correct? Is it acceptable for that t-* fragment to
do something like:
gcc.map: $(srcdir)/config/i386/gcc.map
-rm -f gcc.map
-cp -f $(srcdir)/config/i386/gcc.map $@
Any help / advice would be greatly appreciated.
Kean