From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Martin v. Loewis" To: senti1@k.ro Cc: gcc-help@gcc.gnu.org Subject: Re: linking question Date: Tue, 16 May 2000 23:04:00 -0000 Message-id: <200005170552.HAA01188@loewis.home.cs.tu-berlin.de> References: <006a01bfbf37$b5e910c0$3825558d@cs.pub.ro> X-SW-Source: 2000-05/msg00096.html > 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