ld - does it search LD_LIBRARY_PATH when linking?

karln!uunet.uu.net!karln at uunet.uu.net karln!uunet.uu.net!karln at uunet.uu.net
Fri May 10 23:03:00 AEST 1991


I have just a quick question.  When linking, 

	ie: cc -o xxx xxx.o xxy.o -lX11

a program I always have to specificaly point to libraries that are not in
/usr/lib with a -L option. For example, -L//home/openwin/lib in order to
get any X libraries linked in. I thought that LD_LIBRARY_PATH was supposed
to cure this. However it only seems to point to libraries needed to reun
the programs. Am I wrong here or is something else not set. Should I be
setting LD_OPTIONS to -L/home/openwin/lib. This seems like it should work,
but is this the correct way?

	Any and all replies helpfull. Thanks.

Karl Nicholas
karln%karln at uunet.uu.net




More information about the Comp.sys.sun mailing list