libtool
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shared library depending on static library on Solaris


From: Thorsten Glaser
Subject: Re: shared library depending on static library on Solaris
Date: Wed, 29 Jun 2005 11:00:48 +0000

Ralf Wildenhues dixit:

>> Most arches do not
>> support having non-pic code in a shared lib, for others pic is the
>> default.  Afaik, on linux, i386 is the only arch that actually
>> supports non-pic code in a shared lib.
>
>Solaris on some arches, too, I believe.

>> Having non-pic code in a shared lib has as effect that the lib
>> actually isn't shared by several processes, so it's a waste of
>> memory.
>
>ACK.

It depends. I did not push myself to a reproducible test case,
but I have heard and experienced at least one that not using
-fpic/-fPIC and then making a shared library can cause misbe-
haviour, even crash the app, under BSD. Some arches are more,
some less forgiving (on ppc, PIC is default, but I'm on i386
and had the problem).

//mirabile
-- 
I believe no one can invent an algorithm. One just happens to hit upon it
when God enlightens him. Or only God invents algorithms, we merely copy them.
If you don't believe in God, just consider God as Nature if you won't deny
existence.              -- Coywolf Qi Hunt





reply via email to

[Prev in Thread] Current Thread [Next in Thread]