1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 10:05:05 -07:00

Add library version

This commit is contained in:
Frank Denis 2013-01-20 17:51:57 -08:00
parent 45188cfad1
commit b4e28221e8
2 changed files with 16 additions and 1 deletions

View File

@ -12,6 +12,20 @@ AC_SUBST(VERSION)
ISODATE=`date +%Y-%m-%d`
AC_SUBST(ISODATE)
SODIUM_LIBRARY_VERSION=0:0:0
# | | |
# +------+ | +---+
# | | |
# current:revision:age
# | | |
# | | +- increment if interfaces have been added
# | | set to zero if interfaces have been removed
# | | or changed
# | +- increment if source code has changed
# | set to zero if current is incremented
# +- increment if interfaces have been added, removed or changed
AC_SUBST(SODIUM_LIBRARY_VERSION)
LX_CFLAGS=${CFLAGS-NONE}
AC_PROG_CC_C99
AC_USE_SYSTEM_EXTENSIONS

View File

@ -82,7 +82,8 @@ EXTRA_DIST = \
libsodium_la_LDFLAGS = \
$(AM_LDFLAGS) \
-export-dynamic \
-no-undefined
-no-undefined \
-version-info $(SODIUM_LIBRARY_VERSION)
libsodium_la_CPPFLAGS = \
$(LTDLINCL) \