This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]