Kean Johnston <[EMAIL PROTECTED]> writes:

> 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

Put it in extra_parts in config.gcc.

> 2) Whats the best place to put it in the source tree?

In the config/CPU directory.

> 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 $@

Yes.

Ian

Reply via email to