no linking from /usr/local/lib since FC2
Ralf Corsepius
rc040203 at freenet.de
Tue Nov 16 17:10:10 UTC 2004
On Tue, 2004-11-16 at 06:52 -0700, Brian Richardson wrote:
> On 16-Nov-04, at 3:21 AM, Greg Matheson wrote:
> > It seems that since FC2 you have to specify /usr/local/lib in
> > /etc/ld.so.conf and then run ldconfig.
>
> [ snip ]
>
> > Correct me if I'm wrong.
>
> OK. You're wrong.
Now you are wrong :)
> /usr/local/lib is not a standard search path,
/usr/local/{lib|include} has always been and will probably always be in
the standard search path of GCC.
> nor is
> it in the ld.so.conf in FC1.
It is not a standard search path in RH's ld.so configuration.
To match ld.so.conf with GCC's expectations, simply add /usr/local/lib
to ld.so.conf and make sure it has precedence over /usr/lib.
This fact has repeatedly been subject to discussions.
Some people consider it to be a bug/inconsistency in all RH-based
distributions, others say "/usr/local" is beyond the scope of a
distributor's responsibility and therefore consider
adding /usr/local/lib to ld.so.conf to be task of a local system
administrator ;-)
Ralf
More information about the fedora-list
mailing list