From owner-freebsd-questions Mon Oct 11 4:15:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 6263414BFF for ; Mon, 11 Oct 1999 04:15:43 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.037 #1) id 11adQQ-000MT5-00; Mon, 11 Oct 1999 13:15:30 +0200 From: Sheldon Hearn To: Tan Juay Kwang Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ldconfig_paths In-reply-to: Your message of "Mon, 11 Oct 1999 15:23:23 +0800." Date: Mon, 11 Oct 1999 13:15:30 +0200 Message-ID: <86370.939640530@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 11 Oct 1999 15:23:23 +0800, Tan Juay Kwang wrote: > Hi all, the default rc.conf in /etc/defaults had the line > ldconfig_paths set to "/usr/lib/compat /usr/X11R6/lib > /usr/local/lib". However, ld still does not look at /usr/local/lib > while linking? Make sure you don't have settings in /etc/rc.conf which override those which you found in /etc/defaults/rc.conf . Note that there are two search path sets -- one for ELF and one for AOUT. The controlling variables are ldconfig_paths and ldconfig_paths_aout. Also note that changing these files does not automatically cause ldconfig to update the hints database. A reboot takes care of this, as do the following command: ldconfig /usr/lib/compat /usr/X11R6/lib /usr/local/lib ldconfig -aout /usr/lib/compat/aout /usr/X11R6/lib/aout \ /usr/local/lib/aout There may be other directories which are merged into the hints database by scripts in /usr/local/etc/rc.d . Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message