1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
Description: fix soname for libraries
Add SOVERSION setting to cmake files.
Origin: vendor, https://gitlab.archlinux.org/archlinux/packaging/packages/protobuf/-/blob/main/soversion.patch?ref_type=heads
Author: Antonio Rojas <arojas@archlinux.org>
Forwarded: no
Last-Update: 2023-12-26
---
--- protobuf-3.25.1.orig/cmake/libprotobuf-lite.cmake
+++ protobuf-3.25.1/cmake/libprotobuf-lite.cmake
@@ -33,6 +33,7 @@ if(protobuf_BUILD_SHARED_LIBS)
endif()
set_target_properties(libprotobuf-lite PROPERTIES
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protobuf-lite
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden
--- protobuf-3.25.1.orig/cmake/libprotobuf.cmake
+++ protobuf-3.25.1/cmake/libprotobuf.cmake
@@ -36,6 +36,7 @@ if(protobuf_BUILD_SHARED_LIBS)
endif()
set_target_properties(libprotobuf PROPERTIES
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protobuf
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden
--- protobuf-3.25.1.orig/cmake/libprotoc.cmake
+++ protobuf-3.25.1/cmake/libprotoc.cmake
@@ -27,6 +27,7 @@ endif()
set_target_properties(libprotoc PROPERTIES
COMPILE_DEFINITIONS LIBPROTOC_EXPORTS
VERSION ${protobuf_VERSION}
+ SOVERSION ${protobuf_VERSION_MINOR}
OUTPUT_NAME ${LIB_PREFIX}protoc
DEBUG_POSTFIX "${protobuf_DEBUG_POSTFIX}"
# For -fvisibility=hidden and -fvisibility-inlines-hidden
|