karln@uunet.uu.net (05/10/91)
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@uunet.uu.net