Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 1998 17:07:23 -0700
From:      John Polstra <jdp@polstra.com>
To:        Jin Guojun (FTG staff) <jin@george.lbl.gov>
Cc:        mike@smith.net.au, hackers@FreeBSD.ORG
Subject:   Re: ld for loading dynamic library changed in 3.0-RELEASE? 
Message-ID:  <199810230007.RAA21806@austin.polstra.com>
In-Reply-To: Your message of "Thu, 22 Oct 1998 16:51:14 PDT." <199810222351.QAA08906@george.lbl.gov> 

next in thread | previous in thread | raw e-mail | index | archive | help
> > > 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810230007.RAA21806>