[CLN-list] Re: future GCC 4.3 and modules.h

Richard B. Kreckel kreckel at ginac.de
Sat Jan 5 12:37:26 CET 2008


Alexei Sheplyakov wrote:
> On Mon, Dec 17, 2007 at 09:09:21AM +0100, Richard B. Kreckel wrote:
>  
>> I don't see how your patch can work. With -fPIC, we'll have to write 
>> _GLOBAL__I_foo.cc, alright, but without -fPIC, we'll have to stick to 
>> _GLOBAL__I_func.
> 
> That makes PIC and non-PIC versions of the library binary incompatible,
> doesn't it?

Correct. Which is exactly why I tried to re-establish binary 
compatibility by calling the ctors indirectly only, through a name that 
is the same in the shared and the static library. Thus the global ctor's 
real name would not be of interest for the library user any more.

   -richy.
-- 
Richard B. Kreckel
<http://www.ginac.de/~kreckel/>


More information about the CLN-list mailing list