FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-06-2010, 06:28 PM
Al
 
Default Shared libraries in Gentoo

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?

Is this compiled into the programes by means of rpath?

Does Gentoo set up a general search path for libraries?

Does this rather differ on per package basis?

I hint to the right docs would help.

Thank you in advance

Al
 
Old 09-06-2010, 08:30 PM
Nikos Chantziaras
 
Default Shared libraries in Gentoo

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
 

Thread Tools




All times are GMT. The time now is 09:10 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org