From owner-freebsd-hackers Fri Oct 23 01:31:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA07373 for freebsd-hackers-outgoing; Fri, 23 Oct 1998 01:31:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA07367 for ; Fri, 23 Oct 1998 01:31:56 -0700 (PDT) (envelope-from lada@pc8811.gud.siemens.at) Received: from scesie04.sie.siemens.at (root@firix-hme0 [10.1.140.1]) by zwei.siemens.at with ESMTP id KAA03945; Fri, 23 Oct 1998 10:29:23 +0200 (MET DST) Received: from scegud01.gud.siemens.at (scegud01.gud.siemens.at [195.3.240.30]) by scesie04.sie.siemens.at () with ESMTP id KAA15357; Fri, 23 Oct 1998 10:29:20 +0200 (METDST) Received: from pc8811.gud.siemens.at (pc8811.gud.siemens.at [195.3.22.159]) by scegud01.gud.siemens.at (8.8.8/8.8.5) with ESMTP id KAA20908; Fri, 23 Oct 1998 10:29:17 +0200 (METDST) Message-ID: X-Mailer: XFMail 1.2 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199810230034.RAA09461@george.lbl.gov> Date: Fri, 23 Oct 1998 10:29:44 +0200 (CEST) Organization: Siemens Austria AG From: Marino Ladavac To: (FTG staff) Subject: Re: ld for loading dynamic library changed in 3.0-RELEASE? Cc: jdp@polstra.com, mike@smith.net.au, hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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