question on -L option of cc

Jan Morales janm at eliot.UUCP
Fri Mar 9 06:31:30 AEST 1990


The SunOS manual describes the "-L" option to the "cc" command as adding
the specified directory "to the list of directories containing object-
library routines".  My question is: in what order are the directories
searched to find a library?  If I say "-L/mylibs -lfoo" and a "libfoo.a"
exists in both "/usr/lib" and "/mylibs", which will be used?

I am using "cc" on SunOS 4.0.1 on a Sun 3 and a Sun 4.  Thanks in advance.
Post or e-mail as you see fit.

Jan
-- 
{uunet,pyramid}!pyrdc!eliot!janm



More information about the Comp.unix.questions mailing list