File: shared_lib.patch

package info (click to toggle)
libvcflib 1.0.12%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 70,520 kB
  • sloc: cpp: 39,837; python: 532; perl: 474; ansic: 317; ruby: 295; sh: 254; lisp: 148; makefile: 123; javascript: 94
file content (43 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download
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
40
41
42
43
Author: Andreas Tille <tille@debian.org>
Last-Update: Thu, 15 Sep 2016 22:26:26 +0200
Description: Create shared lib instead of static
Forwarded: not-needed
--- libvcflib.orig/CMakeLists.txt
+++ libvcflib/CMakeLists.txt
@@ -173,19 +173,19 @@
     contrib/c-progress-bar/progress.c
 )
 
-target_link_libraries(vcflib
-    PkgConfig::SMITHWATERMAN
-    PkgConfig::FASTAHACK
-    )
-
 if (TABIXPP_LOCAL) # add the tabixpp source file
     list(APPEND vcflib_SOURCE ${tabixpp_SOURCE})
 endif()
 
-add_library(vcflib STATIC
+add_library(vcflib SHARED
     ${vcflib_SOURCE}
     )
 
+target_link_libraries(vcflib
+    PkgConfig::SMITHWATERMAN
+    PkgConfig::FASTAHACK
+    )
+
 set(BINS
     vcfecho
     dumpContigsFromHeader
@@ -322,6 +322,10 @@
 file (STRINGS "VERSION" BUILD_NUMBER)
 add_definitions(-DVCFLIB_VERSION="${BUILD_NUMBER}")
 add_definitions(-DVERSION="${BUILD_NUMBER}")
+string(REGEX MATCH "^[0-9]+" MAJOR_BUILD_NUMBER ${BUILD_NUMBER})
+set_target_properties(vcflib PROPERTIES
+	SOVERSION 2
+    )
 
 # ---- Build htslib
 #