This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: how to truly override a specs file
- From: "Dave Murphy" <wintermute2k4 at ntlworld dot com>
- To: "Chris McCraw" <fool at cs dot utexas dot edu>,<gcc-help at gcc dot gnu dot org>
- Date: Tue, 13 Jul 2004 10:48:52 +0100
- Subject: RE: how to truly override a specs file
> -----Original Message-----
> can anyone suggest a method for either completely and actually overriding
> the system specs file, or else *removing* via command line arguments
> -I/-L directives that arrived via the system specs file? does anyone
> else find this documentation a bit confusing?
just rename the parts of the main spec file you wish to override like so :-
%rename link old_link
%rename endfile old_endfile
*link:
-T gba_er.ld%s %(old_link)
*startfile:
er_crt0%O%s
this is from a specs fragment I used to get rid of the extra crt files and
insert a custom linkscript for a particular subtarget.
Dave