From owner-freebsd-current Wed Sep 2 10:00:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA23171 for freebsd-current-outgoing; Wed, 2 Sep 1998 10:00:33 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [207.153.65.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA23166 for ; Wed, 2 Sep 1998 10:00:32 -0700 (PDT) (envelope-from winter@jurai.net) Received: from localhost (winter@localhost) by sasami.jurai.net (8.8.8/8.8.7) with SMTP id MAA19710; Wed, 2 Sep 1998 12:59:16 -0400 (EDT) Date: Wed, 2 Sep 1998 12:59:16 -0400 (EDT) From: "Matthew N. Dodd" To: Brian Tao cc: FREEBSD-CURRENT Subject: Re: Why no ldconfig for ELF? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Solris -doesn't- require this. You just aren't linking your programs with -R. Hint: when you specify a library search path to ld using the -L flag, you should have a corresponding -R flag with the same directory. I think the FreeBSD ELF ld uses -rpath rather than -R though I'm not positive. On Wed, 2 Sep 1998, 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. -- | Matthew N. Dodd |This space | '78 Datsun 280Z | FreeBSD/NetBSD/Sprite/VMS | | winter@jurai.net |is for rent| '84 Volvo 245DL | ix86,sparc,m68k,pmax,vax | | http://www.jurai.net/~winter | Are you k-rad elite enough for my webpage? | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message