Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Oct 1998 10:29:44 +0200 (CEST)
From:      Marino Ladavac <lada@pc8811.gud.siemens.at>
To:        (FTG staff) <jin@george.lbl.gov>
Cc:        jdp@polstra.com, mike@smith.net.au, hackers@FreeBSD.ORG
Subject:   Re: ld for loading dynamic library changed in 3.0-RELEASE?
Message-ID:  <XFMail.981023102944.lada@pc8811.gud.siemens.at>
In-Reply-To: <199810230034.RAA09461@george.lbl.gov>

next in thread | previous in thread | raw e-mail | index | archive | help

On 23-Oct-98 FTG staff wrote:
>> 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.
> 
> Can we improve it? LD_LIBRARY_PATH is a UN*X environment variable
> which is used for all UNIX platforms, but may not for Linux.
> I think it is not a hard job.

s/all UNIX platforms/all UNIX platforms I have been using and that is not
that many/

HP-UX uses SHLIB_PATH as an exclusively run-time variable.  Setting run paths
on HPUX means jumping through hoops (it can be done; it is messy).

SINIX did overload the meaning of LD_LIBRARY_PATH, but it doesn't seem to 
do that any longer.  It always did support LD_RUN_PATH.

LD_LIBRARY_PATH is a run-time variable.  If you want to set library paths
during linking use the LD_RUN_PATH instead.  This has changed even on
SysVR4 because the LD_LIBRARY_PATH overload was too confusing.

/Marino

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?XFMail.981023102944.lada>