From owner-freebsd-questions Tue Nov 7 18:45:31 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id SAA14312 for questions-outgoing; Tue, 7 Nov 1995 18:45:31 -0800 Received: from chemserv.umd.edu (chemserv.umd.edu [129.2.64.40]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id SAA14303 for ; Tue, 7 Nov 1995 18:45:20 -0800 Received: from cappuccino.eng.umd.edu (cappuccino.eng.umd.edu [129.2.98.14]) by chemserv.umd.edu (8.7/8.7) with ESMTP id VAA16521; Tue, 7 Nov 1995 21:45:13 -0500 (EST) Received: (chuckr@localhost) by cappuccino.eng.umd.edu (8.7/8.6.4) id VAA08896; Tue, 7 Nov 1995 21:45:13 -0500 (EST) Date: Tue, 7 Nov 1995 21:45:12 -0500 (EST) From: Chuck Robey X-Sender: chuckr@cappuccino.eng.umd.edu To: Archie Cobbs cc: freebsd-questions@freebsd.org Subject: Re: Default ld search path In-Reply-To: <199511080040.QAA16944@bubba.tribe.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org Precedence: bulk On Tue, 7 Nov 1995, Archie Cobbs wrote: > > Hello. > > What is the default library search path for ld ? > I can't tell from the man page. It's set on startup by the /etc/rc file, and yes, it does by default include /usr/local/lib, but not on a real dynamic basis. On startup, the directories you'll see mentioned are scanned for shared libs, and a file in /var/run called ld.so.hints carries info as to where to find stuff. If you add a library, and you're using a recent version of FreeBSD (this has changed not too long ago) you can get ldconfig to re-scan and merge in hints about libs you've added. This is all put down in the ldconfig man page, and perhaps a reread with this info will make more sense to you now. > > Reason being it doesn't seem to include /usr/local/lib. > Is this correct, and if so, shouldn't it be added? > > Curiously, > -Archie > > _______________________________________________________________________________ > Archie L. Cobbs, archie@tribe.com * Tribe Computer Works http://www.tribe.com > ========================================================================== Chuck Robey chuckr@eng.umd.edu, I run FreeBSD-current on n3lxx + Journey2 Here's OJ's internet address in hex code: 00 2F 2F 2F 2F 5C 7F 2D 0D 15 1B 19 24 24 24 18 If you can't recall the translation, here it is: null character, slash, slash, slash, slash, backslash, rubout, dash, carriage return, negative acknowledgement, escape, end of media, dollar sign, dollar sign, dollar sign, cancel