Skip to content

Commit

Permalink
build: Rename LIBMD_ABI to SOVERSION
Browse files Browse the repository at this point in the history
This matches the semantics of the variable, and makes it independent of
the project, just as the package variables.
  • Loading branch information
guillemj committed Feb 21, 2024
1 parent ea62163 commit d5b8e85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ AM_INIT_AUTOMAKE(
)
AM_SILENT_RULES([yes])

LIBMD_ABI_MAJOR=0
LIBMD_ABI_MINOR=1
LIBMD_ABI_PATCH=0
SOVERSION_MAJOR=0
SOVERSION_MINOR=1
SOVERSION_PATCH=0

LIBMD_ABI="$LIBMD_ABI_MAJOR:$LIBMD_ABI_MINOR:$LIBMD_ABI_PATCH"
AC_SUBST([LIBMD_ABI])
SOVERSION="$SOVERSION_MAJOR:$SOVERSION_MINOR:$SOVERSION_PATCH"
AC_SUBST([SOVERSION])

# Check and store if we got user supplied variables.
user_CFLAGS=${CFLAGS-unset}
Expand Down
2 changes: 1 addition & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ EXTRA_libmd_la_DEPENDENCIES = \

libmd_la_LDFLAGS = \
-no-undefined \
-version-number $(LIBMD_ABI) \
-version-number $(SOVERSION) \
# EOL
if HAVE_LINKER_VERSION_SCRIPT
libmd_la_LDFLAGS += \
Expand Down

0 comments on commit d5b8e85

Please sign in to comment.