From owner-freebsd-hackers Sun Dec 1 2:47:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 666E537B401 for ; Sun, 1 Dec 2002 02:47:49 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 08CC743EBE for ; Sun, 1 Dec 2002 02:47:49 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0061.cvx22-bradley.dialup.earthlink.net ([209.179.198.61] helo=mindspring.com) by scaup.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18IRdV-0005iF-00; Sun, 01 Dec 2002 02:47:41 -0800 Message-ID: <3DE9E878.D49AC019@mindspring.com> Date: Sun, 01 Dec 2002 02:46:16 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Reinier Kleipool Cc: freebsd-hackers@freebsd.org Subject: Re: question about shared libraries and the library cache. References: <000001c2991d$05083340$5201a8c0@ovs.kleipool.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Reinier Kleipool wrote: > I have a question about shared libraries. I have compiled a new library, > and installed it in /usr/local/lib. If I then ask ldconfig(8) to updates its > hints file, the new library is not listed in the hints file. In > /usr/local/lib I see two other libraries that also are not listed: > pam_ldap.so pam_smb_auth.so. > > My question: What is so special about these libraries that they are not > listed in the ldconfig hints files? And for my own library: What do I need > to do to make my own library listed in ldconfig? Are there special ld(1) > flags needed to get it listed? You have to add /usr/local/lib to the ldconfig search path, e.g.: ldconfig -m /usr/local/lib If you want them to be there at boot time, you need to add: ldconfig_paths="/usr/lib /usr/local/lib" in /etc/rc.conf. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message