[gnome-bluetooth/wip/hadess/fix-soname: 3/3] build: Fix soname creation to match libtool versioning




commit 009df7c2c99f4f4812c359a234fe6450da0f0585
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Mar 23 12:55:31 2021 +0100

    build: Fix soname creation to match libtool versioning
    
    The documentation we brought forward from autotools/libtool didn't
    actually match sonames, but used libtool rules. Replicate the libtool
    rules to fix the unwanted soname bump.
    
    Closes: #82

 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/meson.build b/meson.build
index e59e3a35..6df6396b 100644
--- a/meson.build
+++ b/meson.build
@@ -40,7 +40,8 @@ current = 14
 revision = 0
 age = 1
 
-libversion = '@0@.@1@.@2@'.format(current, age, revision)
+lt_soversion = current - age
+libversion = '@0@.@1@.@2@'.format(lt_soversion, age, revision)
 
 gnome = import('gnome')
 i18n = import('i18n')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]