🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #7721

ld - does it search LD_LIBRARY_PATH when linking?

#7721
From: karln!uunet.uu.net!karln
Date: Fri, 10 May 1991 13:03
16 lines
1229 bytes
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
Technical Details
Message-ID: <2792@brchh104.bnr.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!cunews!bnrgate!brchh104!brchs1!bnr.ca!rice.edu!sun-spots-request
From: karln!uunet.uu.net!karln@uunet.uu.net
Newsgroups: comp.sys.sun
Subject: ld - does it search LD_LIBRARY_PATH when linking?
Keywords: Miscellaneous
Message-ID: <2792@brchh104.bnr.ca>
Date: 10 May 91 13:03:00 GMT
Sender: news@brchh104.bnr.ca
Organization: Sun-Spots
Lines: 17
Approved: Sun-Spots@rice.edu
X-Original-Date: Wed, 1 May 1991 16:55:34 GMT
X-Sun-Spots-Digest: Volume 10, Issue 100, message 18
X-Note: Submissions: sun-spots@rice.edu, Admin: sun-spots-request@rice.edu