TOC   Previous   Next

Shared library versions and naming (cont.)

soname

Format: libname.so.major-id

soname includes the same major version identifier as corresponding real name, but does not include minor version identifier.

Purpose: run-time loading is dependent only on major version number of the library

soname is created as a symbolic link (usually in same directory as real name).

Examples of sonames (along with the real names to which they might be symbolically linked):

libdemo.so.1        -> libdemo.so.1.0.2
libdemo.so.2        -> libdemo.so.2.0.1
libreadline.so.4    -> libreadline.so.4.0

(C) 2006, Michael Kerrisk