Re: Splitting up a library without breaking ABI?



On 08/23/2011 07:35 PM, Josselin Mouette wrote:
> Le mardi 23 août 2011 à 10:20 +0200, Stef Walter a écrit : 
>> Is there a way to split a library into two without breaking ABI?
>>
>> The current pkg-config file library is libgcr-3.so. Would it work to
>> have libgcr-3.so depend on the two new libraries (eg: libgcr-base-3.so,
>> libgcr-gtk-3.so).
> 
> What I have already seen working is libgcr-3.so keeping some of the
> symbols, depending on libgcr-base-3.so with the others. But I don’t see
> a reason why it wouldn’t work at the moment.
> 
> And I really mean “at the moment”; in the future the dynamic linker
> might stop automatically looking for symbols in indirect dependencies,
> since AFAIK it is not part of its specification to do so.

Good to know. I had a vague suspicion that this was undefined behavior
and very likely Linux specific.

Cheers,

Stef


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