Skip to content

Include version number in SONAME of .so files #807

@davidcorrie

Description

@davidcorrie

To make version management easier in linux, it would be good to set the SONAME for the library. At present there is no version included in .so files:

# objdump -p /usr/lib64/libaws-cpp-sdk-core.so | grep SONAME
  SONAME               libaws-cpp-sdk-core.so

This can be achieved via cmake’s SOVERSION property:
set_property(TARGET bar PROPERTY SOVERSION XXXXX)

The SOVERSION ought to be updated when a binary incompatible change to the library occurs, commonly done in-step with updating the major version of the library:
http://pusling.com/blog/?p=352

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions