From owner-freebsd-hackers Thu Oct 22 18:30:14 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA04479 for freebsd-hackers-outgoing; Thu, 22 Oct 1998 18:30:14 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA04467 for ; Thu, 22 Oct 1998 18:30:09 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id SAA02455; Thu, 22 Oct 1998 18:31:30 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810230131.SAA02455@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: Jin Guojun (FTG staff) cc: jdp@polstra.com, hackers@FreeBSD.ORG, mike@smith.net.au Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? In-reply-to: Your message of "Thu, 22 Oct 1998 17:34:08 PDT." <199810230034.RAA09461@george.lbl.gov> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 22 Oct 1998 18:31:29 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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