[comp.unix.questions] question on -L option of cc

janm@eliot.UUCP (Jan Morales) (03/09/90)

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