[Ffmpeg-devel] [patch] make SONAME encoding optional

Måns Rullgård mru
Sun Dec 18 14:41:54 CET 2005


Luca Barbato <lu_zero at gentoo.org> writes:

> Jacob Meuser wrote:
>> SONAME is generally thought of as uncecessary complication by
>> OpenBSD devs.
>>
>
> I don't like it...

Me neither.

>> $ find /usr/lib -name \*.so\* | wc -l
>>         66
>> $ find /usr/lib -name \*.so\* | xargs readelf -a | grep SONAME
>>  0x000000000000000e (SONAME)             Library soname: [libstdc++.so.40.0]
>> $ I'm not sure why libstdc++ has SONAME as opposed to the other
>> system libs.
>>
>
> Say that is the only thing that may be slotted or that changes its abi
> for sure, thus breaking your system horribly on mismatch, even
> accidental.
>
>> also, libtool does not encode SONAME on OpenBSD.
>
> interesting and sad.

libtool is just weird.

>> no symlinks for libfoo.so -> libfoo.so.X.X either.
>> so, it's very clean and easy to see what's going on.  also makes it
>> easy to have multiple library versions, since there won't be any
>> filename clash; you can only have one libfoo.so.
>>
>
> so you have to link using .so.$version or the linker has to iterate
> for each file that match the name within the libdirs and pick the best
> version?

FreeBSD has libfoo.so.X and a libfoo.so symlink.  SONAME is set to
libfoo.so.X.  In other words, they have only major versions of libs.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-devel mailing list