Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2002 02:46:16 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Reinier Kleipool <Reinier@kleipool.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: question about shared libraries and the library cache.
Message-ID:  <3DE9E878.D49AC019@mindspring.com>
References:  <000001c2991d$05083340$5201a8c0@ovs.kleipool.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DE9E878.D49AC019>