* Andrea Conti wrote:
> More importantly, code which is intended to be used in shared objects
> must be compiled with specific options as position-independent code,
> whereas code in an archive needs not.
Not necessarily. But it can't be shared at runtime anymore, since
the dynamic loader has to
>
> What I am saying is that there is no way to dynamically load code from a
> .a file, at least not with the system tools, period.
>
O.K. so we have to stress the term archive in your statement.
Al
> So why shouldn't you be able to load an unshared lib (without PIC)
> dynamically? Sure there still would be some additional steps.
I am not talking specifically about PIC/non-PIC code here. PIC is
relevant because when you're doing dynamic loading you generally cannot
predict at what (virtual) a
> You can't link dynamically against a library archive, so all DL code on
Don't you contradict
http://tldp.org/HOWTO/Program-Library-HOWTO/introduction.html with
this?
Practically you never do. But could, if you really wanted?
AFAIK you need PIC only to share libs in memory. The rest is already
Le Saturday 11 September 2010 22:52:09, walt a écrit :
> On 09/11/2010 02:13 AM, Stéphane Guedon wrote:
> > synce few days, I have a message of portage suggestiung me to use the
> > "static- libs" USE flag for media-libs/jpeg-6b.
> >
> > What may be the consequence ? Please be gentle with explaini
On 09/11/2010 12:13 PM, Stéphane Guedon wrote:
synce few days, I have a message of portage suggestiung me to use the "static-
libs" USE flag for media-libs/jpeg-6b.
What may be the consequence ? Please be gentle with explaining this sorte of
things, as I have not the knowledges to understand the
> "DL libraries aren't really a different kind of library format (both
> static and shared libraries can be used as DL libraries);"
Library archives (.a) and shared objects (.so) differ in several ways.
Roughly speaking:
>From a file format perspective, .a files are simple collections (man ar)
of
> What happens if portage builds a 'static' package that links against a
> library
> that was installed without the 'static-libs' useflag being set?
http://tldp.org/HOWTO/Program-Library-HOWTO/introduction.html writes:
"DL libraries aren't really a different kind of library format (both
static an
On 09/11/2010 01:52 PM, walt wrote:
I don't know how portage chooses between static and dynamic libs while building
a package.
Aha! Grepping through /usr/portage/eclass/* for 'static' taught me something:
xorg-2.eclass: myopts+=" $(use_enable static-libs static)"
So there i
On 09/11/2010 02:13 AM, Stéphane Guedon wrote:
synce few days, I have a message of portage suggestiung me to use the "static-
libs" USE flag for media-libs/jpeg-6b.
What may be the consequence ? Please be gentle with explaining this sorte of
things, as I have not the knowledges to understand the
10 matches
Mail list logo