From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f678f,acc9ab61bd1d843f X-Google-Attributes: gidf678f,public X-Google-Thread: 14754d,acc9ab61bd1d843f X-Google-Attributes: gid14754d,public From: Joe Mario Subject: Re: How do I pass flags to ld from cc?? Date: 1996/09/09 Message-ID: <323447B5.41C6@zk3.dec.com>#1/1 X-Deja-AN: 179521161 references: <8419537168630@maverick.mcs.anl.gov> to: Satish Balay cc: mario content-type: text/plain; charset=us-ascii organization: CTG mime-version: 1.0 newsgroups: comp.unix.osf.misc,comp.unix.osf.osf x-mailer: Mozilla 3.0b5aGold (X11; I; OSF1 V4.0 alpha) 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