5 Jan
2008
5 Jan
'08
12:37 p.m.
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/>