From owner-freebsd-current Wed Sep 2 10:19:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA26624 for freebsd-current-outgoing; Wed, 2 Sep 1998 10:19:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from ocean.campus.luth.se (ocean.campus.luth.se [130.240.194.116]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA26618 for ; Wed, 2 Sep 1998 10:19:26 -0700 (PDT) (envelope-from karpen@ocean.campus.luth.se) Received: (from karpen@localhost) by ocean.campus.luth.se (8.9.1/8.9.1) id TAA11179; Wed, 2 Sep 1998 19:14:15 +0200 (CEST) (envelope-from karpen) From: Mikael Karpberg Message-Id: <199809021714.TAA11179@ocean.campus.luth.se> Subject: Re: Why no ldconfig for ELF? In-Reply-To: <199809021600.JAA22787@austin.polstra.com> from John Polstra at "Sep 2, 98 09:00:59 am" To: jdp@polstra.com (John Polstra) Date: Wed, 2 Sep 1998 19:14:14 +0200 (CEST) Cc: current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG According to John Polstra: > In article , > Brian Tao wrote: > > I've seen it mentioned dozens of times that ldconfig is deprecated > > with our move to ELF, but I don't think anyone explained why. How > > does ELF know where to find libraries then? Surely we don't have to > > depend on setting LD_LIBRARY_PATH to include /usr/X11R6/lib and > > /usr/local/lib and whatever other local library paths? Solaris > > requires this, and it's been a big pain in the rear. Besides, a > > globally-enforced library search path seems to be much more secure > > than allowing users to specify their own. > > You specify the search path at _link_ time with LD_RUN_PATH or the > "-R" linker option. The path is saved in the executable or shared > library itself. Hmmm... What happens if I have a library in /usr/local/blah/lib/ and link with that, and someone else has the library in /usr/local/lib/ and he just FTPs my binary and runs it. Will it not run??? If so, that seems like a giant step backwards, no? /Mikael To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message