Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 01 Dec 2002 02:46:16 -0800
From:      Terry Lambert <>
To:        Reinier Kleipool <>
Subject:   Re: question about shared libraries and the library cache.
Message-ID:  <>
References:  <000001c2991d$05083340$>

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:
>   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
with "unsubscribe freebsd-hackers" in the body of the message

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