diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-12-03 10:50:16 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-12-03 11:02:17 +0400 |
commit | 339f791f6d14ed40122f03856b95b34ec05a4dc2 (patch) | |
tree | a67d9e0634a6627d43da98e9101aa37263cb4591 /meson.build | |
parent | 9dbc96fde84b0dccc19159fb2989d3d9cbd60f7c (diff) | |
download | slirp-339f791f6d14ed40122f03856b95b34ec05a4dc2.zip slirp-339f791f6d14ed40122f03856b95b34ec05a4dc2.tar.gz slirp-339f791f6d14ed40122f03856b95b34ec05a4dc2.tar.bz2 |
meson: fix libtool versioning
libtool versions must be translated to maj.min.rev, where maj =
current - age.
Also fix lt_current usage, quoting Samuel Thibault:
soversion is not the same as lt_current. soversion must be lt_current
- lt_age, so that the soname stays the same when binary compatibility
is preserved (here, 0), and gets bumped on compatibility break. Yes,
on compatibility break the bump will be big. That's because non-soname
OSes the compatibility support is different. The details are hairy,
yes :)
Instead, rely on meson doing the right thing with soversion by
default.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meson.build b/meson.build index 2b8b2ef..27c8a1c 100644 --- a/meson.build +++ b/meson.build @@ -32,10 +32,10 @@ conf.set('SLIRP_MICRO_VERSION', micro_version) # - If the interface is the same as the previous version, but bugs are # fixed, change: # REVISION += 1 -lt_current = '0' -lt_revision = '0' -lt_age = '0' -lt_version = '@0@.@1@.@2@'.format(lt_current, lt_age, lt_revision) +lt_current = 0 +lt_revision = 0 +lt_age = 0 +lt_version = '@0@.@1@.@2@'.format(lt_current - lt_age, lt_age, lt_revision) host_system = host_machine.system() @@ -101,7 +101,6 @@ configure_file( ) lib = library('slirp', sources, - soversion : lt_current, version : lt_version, c_args : cargs, link_args : vflag, |