File: add_soname.patch

package info (click to toggle)
sfst 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,036 kB
  • sloc: cpp: 6,969; lex: 567; yacc: 269; perl: 135; python: 100; makefile: 49; sh: 13
file content (19 lines) | stat: -rw-r--r-- 648 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Andreas Tille <tille@debian.org>
Last-Update: Wed, 07 Aug 2024 15:30:29 +0200
Description: Provide SONAME to make sure dh_makeshlibs will work properly

--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -46,6 +46,12 @@ set_target_properties(libsfst PROPERTIES
 # Have the output name libsfst.so
 set_target_properties(libsfst PROPERTIES OUTPUT_NAME "sfst")
 
+project(sfst VERSION 1.5.8)
+set_target_properties(libsfst PROPERTIES
+    VERSION ${PROJECT_VERSION}
+    SOVERSION 1
+)
+
 # Have a static library
 add_library(libsfststatic STATIC ${LIB_SOURCES})
 set_target_properties(libsfststatic PROPERTIES POSITION_INDEPENDENT_CODE ON)