From owner-freebsd-hackers Thu Oct 22 17:08:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA26161 for freebsd-hackers-outgoing; Thu, 22 Oct 1998 17:08:02 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA26156 for ; Thu, 22 Oct 1998 17:08:01 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.9.1/8.9.1) with ESMTP id RAA21806; Thu, 22 Oct 1998 17:07:24 -0700 (PDT) (envelope-from jdp) Message-Id: <199810230007.RAA21806@austin.polstra.com> To: Jin Guojun (FTG staff) cc: mike@smith.net.au, hackers@FreeBSD.ORG Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? In-reply-to: Your message of "Thu, 22 Oct 1998 16:51:14 PDT." <199810222351.QAA08906@george.lbl.gov> Date: Thu, 22 Oct 1998 17:07:23 -0700 From: John Polstra Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > > Also, I just found another problem for elf/ld that does not > > > use ENV variable LD_LIBRARY_PATH. If -Lsomething is not > > > specified, the elf/ld just look at /usr/lib, regardless what > > > LD_LIBRARY_PATH set to. > > > > Unless I'm mistake, LD_LIBRARY_PATH is a runtime, not linktime > > parameter. Again, we're using the standard binutils linker, so > > behaviour here should be "standard". > > It is used for both but generally for linktime that is why ldd can > report the paths for any user. Whether it is used at link time varies from system to system. Under SunOS, it was used at link time. But under Linux, for example, it apparently is not. I say that because they use the same ELF tools we do, and the code simply isn't there to use LD_LIBRARY_PATH at link time. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message