From f8382a245d3aa1964dac62f65bb0d1046a259188 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Thu, 10 Feb 2022 16:25:45 +0100 Subject: [PATCH] make,cmake: set SOVERSION to major version For libre its enough to use API major version as ABI major version. --- CMakeLists.txt | 1 + Makefile | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 293c4862b..15fe3d6c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -342,6 +342,7 @@ endif() target_link_libraries(re -L/opt/local/lib -lssl -lcrypto -lpthread) set_target_properties(re PROPERTIES VERSION ${PROJECT_VERSION}) +set_target_properties(re PROPERTIES SOVERSION ${PROJECT_VERSION_MAJOR}) set_target_properties(re PROPERTIES PUBLIC_HEADER include/re.h) diff --git a/Makefile b/Makefile index 104a54bbd..c1ed279af 100644 --- a/Makefile +++ b/Makefile @@ -13,13 +13,7 @@ VER_PATCH := 1 # Increment for breaking changes (dev2, dev3...) VER_PRE := dev13 -# Libtool similar ABI versioning -# https://github.com/baresip/re/wiki/ABI-Versioning -ABI_CUR := 1 -ABI_REV := 1 -ABI_AGE := 0 - -ABI_MAJOR := $(shell expr $(ABI_CUR) - $(ABI_AGE)) +ABI_MAJOR := $(VER_MAJOR) # Verbose and silent build modes ifeq ($(V),)