[SDL] [PATCHES] Dynamic library name: should it be libSDL2-2.0.so or libSDL2.so?

Shawn Walker eviltypeguy at icculus.org
Fri Mar 1 22:14:24 PST 2013


On 2013-02-25 00:59, David Gow wrote:
> CMake and autotools are generating shared libraries with different
> names (and -sonames), which is causing some compatibility problems.
> 
> The autotools backend is using libtool's -release option, causing the
> library to be named "libSDL2-2.0.so", whereas the CMake backend, which
> doesn't use libtool at all, calls the library "libSDL2.so". Neither
> use the release number in the static library, and libtool does create
> a symlink, but binary compatibility is broken, which is a little bit
> annoying.
> 
> Which name do you guys prefer? Personally, I think the release number
> is a mite redundant, particularly if we can fix the .so version (it's
> always 0.0.0 in the autotools build, though works okay in CMake).

When in doubt, assume libtool is wrong.

-Shawn



More information about the SDL mailing list