public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* linking question
@ 2000-05-16  6:04 Senti
  2000-05-16 23:04 ` Martin v. Loewis
  0 siblings, 1 reply; 2+ messages in thread
From: Senti @ 2000-05-16  6:04 UTC (permalink / raw)
  To: gcc-help

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 262 bytes --]

Hi,
 
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 
?
 
Thanks in advance , Adrian
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: linking question
  2000-05-16  6:04 linking question Senti
@ 2000-05-16 23:04 ` Martin v. Loewis
  0 siblings, 0 replies; 2+ messages in thread
From: Martin v. Loewis @ 2000-05-16 23:04 UTC (permalink / raw)
  To: senti1; +Cc: gcc-help

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-16 23:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-16  6:04 linking question Senti
2000-05-16 23:04 ` Martin v. Loewis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).