Thu, 03 May 2018 09:26:06 +0200
introduces macro for library version, s.t. both version numbers can be changed in configure.ac
configure.ac | file | annotate | diff | comparison | revisions | |
src/Makefile.am | file | annotate | diff | comparison | revisions |
1.1 --- a/configure.ac Wed May 02 21:45:52 2018 +0200 1.2 +++ b/configure.ac Thu May 03 09:26:06 2018 +0200 1.3 @@ -27,9 +27,8 @@ 1.4 # 1.5 1.6 # the package version must match the macros in ucx.h 1.7 -# if you change the version, don't forget to adjust the 1.8 -# libtool version-info in src/Makefile.am accordingly 1.9 AC_INIT([ucx], [1.1.0], [olaf.wintermann@gmail.com]) 1.10 +AC_SUBST([UCX_LIB_VERSION], [2:0:1]) 1.11 1.12 # don't place everything in the project root 1.13 AC_CONFIG_AUX_DIR([build-aux])
2.1 --- a/src/Makefile.am Wed May 02 21:45:52 2018 +0200 2.2 +++ b/src/Makefile.am Thu May 03 09:26:06 2018 +0200 2.3 @@ -27,7 +27,7 @@ 2.4 # 2.5 2.6 lib_LTLIBRARIES = libucx.la 2.7 -libucx_la_LDFLAGS = -version-info 2:0:1 2.8 +libucx_la_LDFLAGS = -version-info $(UCX_LIB_VERSION) 2.9 libucx_la_SOURCES = utils.c 2.10 libucx_la_SOURCES += list.c 2.11 libucx_la_SOURCES += map.c