libbtrfsutil: create all .so links

Create symbolic links for all levels of major.minor.patch for
libbtrfsutil.

- libbtrfsutil.so       -> libbtrfsutil.so.1.3.0
- libbtrfsutil.so.1     -> libbtrfsutil.so.1.3.0
- libbtrfsutil.so.1.3   -> libbtrfsutil.so.1.3.0
- libbtrfsutil.so.1.3.0

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2024-05-25 01:09:52 +02:00
parent 729277f6a2
commit 7469718377
1 changed files with 2 additions and 2 deletions

View File

@ -432,7 +432,7 @@ static_tune_objects = $(patsubst %.o, %.static.o, $(tune_objects))
libs_shared = libbtrfs.so.$(libbtrfs_version) libbtrfsutil.so.$(libbtrfsutil_version) libs_shared = libbtrfs.so.$(libbtrfs_version) libbtrfsutil.so.$(libbtrfsutil_version)
lib_links = libbtrfs.so libbtrfs.so.$(LIBBTRFS_MAJOR) libbtrfs.so.$(LIBBTRFS_MAJOR).$(LIBBTRFS_MINOR) \ lib_links = libbtrfs.so libbtrfs.so.$(LIBBTRFS_MAJOR) libbtrfs.so.$(LIBBTRFS_MAJOR).$(LIBBTRFS_MINOR) \
libbtrfsutil.so libbtrfsutil.so.$(libbtrfsutil_major) libbtrfsutil.so libbtrfsutil.so.$(libbtrfsutil_major) libbtrfsutil.so.$(libbtrfsutil_major).$(libbtrfsutil_minor)
libs_build = libs_build =
ifeq ($(BUILD_SHARED_LIBRARIES),1) ifeq ($(BUILD_SHARED_LIBRARIES),1)
libs_build += $(libs_shared) $(lib_links) libs_build += $(libs_shared) $(lib_links)
@ -642,7 +642,7 @@ libbtrfsutil.a: $(libbtrfsutil_objects)
@echo " [AR] $@" @echo " [AR] $@"
$(Q)$(AR) cr $@ $^ $(Q)$(AR) cr $@ $^
libbtrfsutil.so.$(libbtrfsutil_major) libbtrfsutil.so: libbtrfsutil.so.$(libbtrfsutil_version) libbtrfsutil.so libbtrfsutil.so.$(libbtrfsutil_major) libbtrfsutil.so.$(libbtrfsutil_major).$(libbtrfsutil_minor): libbtrfsutil.so.$(libbtrfsutil_version)
@echo " [LN] $@" @echo " [LN] $@"
$(Q)$(LN_S) -f $< $@ $(Q)$(LN_S) -f $< $@