1 |
On 09/06/2010 09:28 PM, Al wrote: |
2 |
> Hello, |
3 |
> |
4 |
> I looked into many ebuilds, but didn't come to a final conclusion yet. |
5 |
> I am rather confused. |
6 |
> |
7 |
> How does a program in Gentoo know, where to look for shared libraries? |
8 |
|
9 |
The program doesn't know. But the runtime linker does. And those paths |
10 |
are in /etc/ld.so.conf. This file gets updated automatically by portage |
11 |
when needed. |
12 |
|
13 |
But... sometimes the program also knows and can link against libraries |
14 |
long after it has started up using a dlopen() call: |
15 |
|
16 |
http://linux.die.net/man/3/dlopen |