AMD64 Linux documentation

Elliot Lee sopwith at redhat.com
Fri Dec 12 16:24:11 UTC 2003


On Fri, 12 Dec 2003, Gene C. wrote:

> One additional thought/question ... OK, so you have /lib - /lib64 and
> /usr/lib - /usr/lib64 ... how does a program which needs a library get
> the "right" one since they are named the same?

/sbin/ldconfig has to be the 64-bit version. This version knows how to
read info from both 32-bit and 64-bit libraries in lib and lib64 dirs.  
The library info is written into /etc/ld.so.cache. The application's
dynamic linker (/{lib,lib64}/ld-linux*.so*) looks through ld.so.cache and
only pays attention to the libraries that match the architecture of the
application.

-- Elliot
http://www.barbiecollectibles.com/shop/product.aspx?sku=B3449
One ring to rule the malls, a website to supply them. The Tolkien "Ken
and Barbie" dolls - now 60 bucks can buy them!





More information about the fedora-devel-list mailing list