On 09/06/2010 09:28 PM, Al wrote:
Hello,

I looked into many ebuilds, but didn't come to a final conclusion yet.
I am rather confused.

How does a program in Gentoo know, where to look for shared libraries?

The program doesn't know. But the runtime linker does. And those paths are in /etc/ld.so.conf. This file gets updated automatically by portage when needed.

But... sometimes the program also knows and can link against libraries long after it has started up using a dlopen() call:

http://linux.die.net/man/3/dlopen


Reply via email to