linking question

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Tue May 16 23:04:00 GMT 2000


> I have a question related to default linking.  If I introduce a new
> command line option (say -ping) how can I say to gcc to link a
> library (say ping.o) whenever he encounters -ping in the command
> line of compiler ?

You can do that in the specs file. For example, see the processing of
the -p option on alpha/vms.h

Regards,
Martin



More information about the Gcc-help mailing list