Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 12:59:16 -0400 (EDT)
From:      "Matthew N. Dodd" <winter@jurai.net>
To:        Brian Tao <taob@risc.org>
Cc:        FREEBSD-CURRENT <freebsd-current@FreeBSD.ORG>
Subject:   Re: Why no ldconfig for ELF?
Message-ID:  <Pine.BSF.4.02.9809021257321.16487-100000@sasami.jurai.net>
In-Reply-To: <Pine.GSO.3.96.980902111219.689F-100000@tor-dev1.nbc.netcom.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02.9809021257321.16487-100000>