Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* How do I pass flags to ld from cc??
@ 1996-09-05  4:00 Satish Balay
  1996-09-09  4:00 ` Joe Mario
  0 siblings, 1 reply; 2+ messages in thread
From: Satish Balay @ 1996-09-05  4:00 UTC (permalink / raw)



Hi,

        I need to pass the ld flag -rpath from cc, and I tried:
        cc -rpath PATH -o outputfile [ other_cc_stuff]
        This does'nt work.

        Using gcc, I could do:
        gcc -Wl,-rpath,PATH  -o outputfile [ other_cc_stuff]

        Is there an option equivalent to gcc's -Wl for cc?
        I'm using a OSF1, V3.2 41 alpha

Thanks.

Satish Balay



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

* Re: How do I pass flags to ld from cc??
  1996-09-05  4:00 How do I pass flags to ld from cc?? Satish Balay
@ 1996-09-09  4:00 ` Joe Mario
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Mario @ 1996-09-09  4:00 UTC (permalink / raw)
  To: Satish Balay; +Cc: mario


Satish Balay wrote:
 
>         I need to pass the ld flag -rpath from cc, and I tried:
>         cc -rpath PATH -o outputfile [ other_cc_stuff]
...
>         Is there an option equivalent to gcc's -Wl for cc?

-Wl, will work.  The cc(1) manpage describes which -Wx, options map
to which phases of the compilation.

For example, the following cc line will pass the -v verbose flag
to the linker.
	cc a.c -Wl,-v

Joe



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

end of thread, other threads:[~1996-09-09  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-09-05  4:00 How do I pass flags to ld from cc?? Satish Balay
1996-09-09  4:00 ` Joe Mario

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox