mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-02-09 23:57:20 +01:00
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.
This commit is contained in:
parent
1bf0a55579
commit
3077d2fffc
@ -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])],
|
||||
[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
|
||||
user_CFLAGS=${CFLAGS-unset}
|
||||
|
||||
|
@ -34,7 +34,7 @@ libbsd_la_DEPENDENCIES = \
|
||||
libbsd.map
|
||||
libbsd_la_LDFLAGS = \
|
||||
-Wl,--version-script=$(srcdir)/libbsd.map \
|
||||
-version-number 0:5:2
|
||||
-version-number $(LIBBSD_ABI)
|
||||
libbsd_la_SOURCES = \
|
||||
arc4random.c \
|
||||
bsd_getopt.c \
|
||||
|
Loading…
x
Reference in New Issue
Block a user