Date: Thu, 22 Oct 1998 18:31:29 -0700 From: Mike Smith <mike@smith.net.au> To: Jin Guojun (FTG staff) <jin@george.lbl.gov> Cc: jdp@polstra.com, hackers@FreeBSD.ORG, mike@smith.net.au Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? Message-ID: <199810230131.SAA02455@dingo.cdrom.com> In-Reply-To: Your message of "Thu, 22 Oct 1998 17:34:08 PDT." <199810230034.RAA09461@george.lbl.gov>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. The environment is almost certainly the wrong place to set it; you might want to consider a path-like syntax extension for the -L argument as an alternative. Arguments belong as arguments. Don't abuse the environment for what it's not designed for. There's also a conflict in that you may wish to use LD_LIBRARY_PATH to influence the dynamic linker when running the link, but not want this to spill over into the linked executable. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com 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?199810230131.SAA02455>