Commit 3077d2ff authored by Guillem Jover's avatar Guillem Jover

build: Move version ABI from Makefile to configure.ac

It's easier to find there, and the value can be reused in case we have
to provide another shared library.
parent 1bf0a555
...@@ -11,6 +11,13 @@ AM_INIT_AUTOMAKE([1.8 foreign nostdinc no-dist-gzip dist-xz]) ...@@ -11,6 +11,13 @@ AM_INIT_AUTOMAKE([1.8 foreign nostdinc no-dist-gzip dist-xz])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])], m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])],
[AC_SUBST([AM_DEFAULT_VERBOSITY], [1])]) [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
LIBBSD_ABI_MAJOR=0
LIBBSD_ABI_MINOR=5
LIBBSD_ABI_PATCH=2
LIBBSD_ABI="$LIBBSD_ABI_MAJOR:$LIBBSD_ABI_MINOR:$LIBBSD_ABI_PATCH"
AC_SUBST([LIBBSD_ABI])
# Check and store if we got user supplied variables # Check and store if we got user supplied variables
user_CFLAGS=${CFLAGS-unset} user_CFLAGS=${CFLAGS-unset}
......
...@@ -34,7 +34,7 @@ libbsd_la_DEPENDENCIES = \ ...@@ -34,7 +34,7 @@ libbsd_la_DEPENDENCIES = \
libbsd.map libbsd.map
libbsd_la_LDFLAGS = \ libbsd_la_LDFLAGS = \
-Wl,--version-script=$(srcdir)/libbsd.map \ -Wl,--version-script=$(srcdir)/libbsd.map \
-version-number 0:5:2 -version-number $(LIBBSD_ABI)
libbsd_la_SOURCES = \ libbsd_la_SOURCES = \
arc4random.c \ arc4random.c \
bsd_getopt.c \ bsd_getopt.c \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment