Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Dec 2002 17:59:56 +0200
From:      Peter Pentchev <>
To:        Terry Lambert <>
Cc:        Reinier Kleipool <>,
Subject:   Re: question about shared libraries and the library cache.
Message-ID:  <>
In-Reply-To: <>
References:  <000001c2991d$05083340$> <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help

Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 01, 2002 at 02:46:16AM -0800, Terry Lambert wrote:
> Reinier Kleipool wrote:
> >   I have a question about shared libraries. I have compiled a new libra=
> > and installed it in /usr/local/lib. If I then ask ldconfig(8) to update=
s 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:
> >
> >=20
> >   My question: What is so special about these libraries that they are n=
> > listed in the ldconfig hints files? And for my own library: What do I n=
> > 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=3D"/usr/lib /usr/local/lib"
> in /etc/rc.conf.

I think that /etc/defaults/rc.conf's ldconfig_paths variable has
contained /usr/local/lib since at least February 1999, which is the
start of the src/etc/defaults/rc.conf CVS history.  Thus, all you need
to worry about is running ldconfig(8) by hand, in which case you should
not forget /usr/X11R6/lib, /usr/local/lib, and any other library
directories where ports might have installed stuff, such as MySQL's


Peter Pentchev
PGP key:
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
When you are not looking at it, this sentence is in Spanish.

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (FreeBSD)



To Unsubscribe: send mail to
with "unsubscribe freebsd-hackers" in the body of the message

Want to link to this message? Use this URL: <>