Package: libseqlib / 1.1.2+dfsg-1~bpo9+1

dynamic_lib.patch Patch series | 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
Author: Andreas Tille <tille@debian.org>
Last-Update: Fri, 27 Jan 2017 13:18:48 +0100
Description: Create dynamic library

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,7 +1,8 @@
-noinst_LIBRARIES = libseqlib.a
+lib_LTLIBRARIES  = libseqlib.la
 
-libseqlib_a_CPPFLAGS = -I../ -I../htslib -I/usr/include/fml -Wno-sign-compare
+libseqlib_la_CPPFLAGS = -I/usr/include -I/usr/include/htslib -I/usr/include/fml -Wno-sign-compare
 
-libseqlib_a_SOURCES =   FastqReader.cpp BFC.cpp ReadFilter.cpp SeqPlot.cpp jsoncpp.cpp ssw_cpp.cpp ssw.c \
+libseqlib_la_SOURCES =   FastqReader.cpp BFC.cpp ReadFilter.cpp SeqPlot.cpp jsoncpp.cpp ssw_cpp.cpp ssw.c \
 			GenomicRegion.cpp RefGenome.cpp BamWriter.cpp BamReader.cpp \
 			BWAWrapper.cpp BamRecord.cpp FermiAssembler.cpp BamHeader.cpp
+libseqlib_la_LDFLAGS = -version-info @LIB_VERSION@
--- a/configure.ac
+++ b/configure.ac
@@ -7,10 +7,16 @@ AC_CONFIG_HEADER([config.h])
 AM_MAINTAINER_MODE([disable])
 ##m4_include([m4/m4_ax_openmp.m4])
 
+LIB_VERSION=1:0
+
+AC_SUBST([VERSION])
+AC_SUBST([LIB_VERSION])
+
 # Checks for programs.
 AC_PROG_CXX ## test for cpp compiler
 AC_PROG_CC ## test for C compiler
 AC_PROG_RANLIB ## required if libraries are built in package
+AC_PROG_LIBTOOL
 
 # Check for headers
 AC_LANG([C++])