Re: shared library symbol versioning

2009-03-02 Thread Simon Josefsson
Bruno Haible writes: > So here we have the classical dilemma between use of advanced GNU tools > and glibc features, vs. portability. > > The portable way to do symbol versioning is through the include file. > In libgettextpo I have this declaration: > > #define po_file_read po_file_read_v3 >

Re: shared library symbol versioning

2009-03-02 Thread Bruno Haible
Simon Josefsson wrote: > > Or is it about allowing multiple versions of the same symbol to exist > > in the same shared library, something which is supported only by glibc > > and Solaris [2]? > > Yes, that is one reason. > > > I'm asking because linker scripts only work with GNU ld (I guess). >