From bb4e50f30c46bef8ab49a886c3042644a25322d9 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 12 Jun 2020 18:14:45 +0200 Subject: Add an explicit defition for the libsquashfs so version Signed-off-by: David Oberhollenzer --- configure.ac | 2 ++ lib/sqfs/Makemodule.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index b87b404..e5b29d7 100644 --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,8 @@ AC_PROG_SED AC_SYS_LARGEFILE AC_CANONICAL_HOST +AC_SUBST([LIBSQUASHFS_SO_VERSION], [0:0:0]) + m4_ifndef([PKG_PROG_PKG_CONFIG], [m4_fatal([Could not locate the pkg-config autoconf macros. These are usually located in /usr/share/aclocal/pkg.m4. diff --git a/lib/sqfs/Makemodule.am b/lib/sqfs/Makemodule.am index 85f4aad..7d535b3 100644 --- a/lib/sqfs/Makemodule.am +++ b/lib/sqfs/Makemodule.am @@ -30,7 +30,7 @@ libsquashfs_la_SOURCES += lib/sqfs/block_processor/frontend.c libsquashfs_la_SOURCES += lib/sqfs/frag_table.c include/sqfs/frag_table.h libsquashfs_la_SOURCES += lib/sqfs/block_writer.c include/sqfs/block_writer.h libsquashfs_la_CPPFLAGS = $(AM_CPPFLAGS) -libsquashfs_la_LDFLAGS = $(AM_LDFLAGS) +libsquashfs_la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBSQUASHFS_SO_VERSION) libsquashfs_la_CFLAGS = $(AM_CFLAGS) $(PTHREAD_CFLAGS) $(ZLIB_CFLAGS) libsquashfs_la_CFLAGS += $(XZ_CFLAGS) $(LZ4_CFLAGS) libsquashfs_la_CFLAGS += $(ZSTD_CFLAGS) $(PTHREAD_CFLAGS) -- cgit v1.2.3