From owner-freebsd-current Wed Sep 2 10:51:28 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA03021 for freebsd-current-outgoing; Wed, 2 Sep 1998 10:51:28 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA02997 for ; Wed, 2 Sep 1998 10:51:22 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id KAA23591; Wed, 2 Sep 1998 10:50:08 -0700 (PDT) (envelope-from jdp) Message-Id: <199809021750.KAA23591@austin.polstra.com> To: Mikael Karpberg cc: current@FreeBSD.ORG Subject: Re: Why no ldconfig for ELF? In-reply-to: Your message of "Wed, 02 Sep 1998 19:14:14 +0200." <199809021714.TAA11179@ocean.campus.luth.se> Date: Wed, 02 Sep 1998 10:50:07 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > > 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??? Correct. The recipient will either have to install the library in one of its standard places, or set LD_LIBRARY_PATH. Or, you will have to anticipate the possible places where he might decide to put the library, and code those into LD_RUN_PATH. > If so, that seems like a giant step backwards, no? It has already been discussed to death in the mailing lists. The goal of ELF is to have standard tools, not another set of deviant bastard children maintained by nobody. That means we do things the standard ELF way. It is easy to pick theoretical holes in anything new and different. I think once you've lived with it for a little while, you'll find that it's fine in practice. -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message