Skip to content

Commit a94e782

Browse files
committed
Merge pull request #59 from radarsat1/lt-so-version
Lt so version
2 parents c91f5fc + b791569 commit a94e782

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ SUBDIRS += doc
44
endif
55

66
lib_LTLIBRARIES = %D%/librtmidi.la
7-
%C%_librtmidi_la_LDFLAGS = -no-undefined
7+
%C%_librtmidi_la_LDFLAGS = -no-undefined -export-dynamic -version-info @SO_VERSION@
88
%C%_librtmidi_la_SOURCES = \
99
%D%/RtMidi.cpp \
1010
%D%/rtmidi_c.cpp

configure.ac

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ AC_CONFIG_SRCDIR(RtMidi.cpp)
55
AC_CONFIG_FILES([rtmidi-config rtmidi.pc Makefile tests/Makefile doc/Makefile])
66
AM_INIT_AUTOMAKE([1.14 -Wall -Werror foreign subdir-objects])
77

8+
# libtool version: current:revision:age
9+
#
10+
# If the library source code has changed at all since the last update, then
11+
# increment revision (`c:r:a' becomes `c:r+1:a').
12+
#
13+
# If any interfaces have been added, removed, or changed since the last update,
14+
# increment current, and set revision to 0.
15+
#
16+
# If any interfaces have been added since the last public release, then
17+
# increment age.
18+
#
19+
# If any interfaces have been removed since the last public release, then set
20+
# age to 0.
21+
m4_define([lt_current], 3)
22+
m4_define([lt_revision], 0)
23+
m4_define([lt_age], 0)
24+
25+
m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
26+
m4_define([lt_current_minus_age], [m4_eval(lt_current - lt_age)])
27+
28+
SO_VERSION=lt_version_info
29+
AC_SUBST(SO_VERSION)
30+
831
# Enable some nice automake features if they are available
932
m4_ifdef([AM_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
1033
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

0 commit comments

Comments
 (0)