From owner-freebsd-current Wed Sep 2 16:14:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA24548 for freebsd-current-outgoing; Wed, 2 Sep 1998 16:14:57 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from mail.camalott.com (mail.camalott.com [208.203.140.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA24541 for ; Wed, 2 Sep 1998 16:14:55 -0700 (PDT) (envelope-from joelh@gnu.org) Received: from detlev.UUCP (tex-141.camalott.com [208.229.74.141]) by mail.camalott.com (8.8.7/8.8.5) with ESMTP id SAA22343; Wed, 2 Sep 1998 18:15:36 -0500 Received: (from joelh@localhost) by detlev.UUCP (8.9.1/8.9.1) id SAA09819; Wed, 2 Sep 1998 18:13:42 -0500 (CDT) (envelope-from joelh) Date: Wed, 2 Sep 1998 18:13:42 -0500 (CDT) Message-Id: <199809022313.SAA09819@detlev.UUCP> To: jdp@polstra.com CC: taob@risc.org, current@FreeBSD.ORG In-reply-to: <199809021600.JAA22787@austin.polstra.com> (message from John Polstra on Wed, 02 Sep 1998 09:00:59 -0700) Subject: Re: Why no ldconfig for ELF? From: Joel Ray Holveck Reply-to: joelh@gnu.org References: <199809021600.JAA22787@austin.polstra.com> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> 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. How is this a win? Say I'm taking a binary from somebody who installed libXpm in /usr/X11R6/lib, and didn't have a /usr/local/lib, which is where my libXpm resides. Best, joelh -- Joel Ray Holveck - joelh@gnu.org - http://www.wp.com/piquan Fourth law of programming: Anything that can go wrong wi sendmail: segmentation violation - core dumped To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message