Skip to content

Commit 1006c91

Browse files
committed
added versioning to the shared library
1 parent dbe8229 commit 1006c91

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

configure.ac

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,22 @@ AM_PROG_AR
1414
# Initialise libtools:
1515
LT_INIT
1616

17+
# The version of the libtool library is of the form current:revision:age
18+
#
19+
# When doing a release, they should be updated like this:
20+
# 1. If no interfaces changed, only implementations: just increment
21+
# revision.
22+
# 2. If interfaces were added, none removed: increment current, set
23+
# revision to zero and increment age.
24+
# 3. If interfaces were removed (breaks backward compatibility): increment
25+
# current, and set both revision and age to zero.
26+
LT_CURRENT=1
27+
LT_REVISION=0
28+
LT_AGE=0
29+
AC_SUBST(LT_CURRENT)
30+
AC_SUBST(LT_REVISION)
31+
AC_SUBST(LT_AGE)
32+
1733
# Checks for programs:
1834
AC_PROG_CXX
1935
AC_PROG_CC

libsrc/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ DOTCCS = $(PROCS_DOTCCS) $(QCURVES_DOTCCS) $(QRANK_DOTCCS) $(G0N_DOTCCS)
3737
EXTRA_DIST = vec.cc mat.cc sub.cc smat.cc svec.cc smat_elim.cc random.cc
3838

3939
libec_la_SOURCES = $(DOTCCS)
40-
libec_la_LDFLAGS = -no-undefined $(AM_LDFLAGS)
40+
libec_la_LDFLAGS = -no-undefined $(AM_LDFLAGS) -version-info @LT_CURRENT@:@LT_REVISION@:@LT_AGE@
4141
nobase_include_HEADERS = $(DOTHS)
4242
ACLOCAL_AMFLAGS = -I m4

0 commit comments

Comments
 (0)