From df43643be2c8668ba4c1f7bb702ee32a78dc096a Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 16 Nov 2018 16:55:49 +0100 Subject: meson: use an autotools compatible compatibility_version/current_version on macOS Use the same versioning scheme as libtool did with the autotools build. Otherwise switching gdk-pixbuf from meson to autotools makes all libraries linking to it fail since the version is too low. --- meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 43b11f61a..96e72de84 100644 --- a/meson.build +++ b/meson.build @@ -42,6 +42,7 @@ revision = gdk_pixbuf_interface_age libversion = '@0@.@1@.@2@'.format(soversion, current, revision) age = gdk_pixbuf_binary_age - gdk_pixbuf_interface_age current_minus_age = current - age +darwin_versions = ['@0@'.format(current + 1), '@0@.@1@'.format(current + 1, gdk_pixbuf_interface_age)] # Paths gdk_pixbuf_prefix = get_option('prefix') @@ -179,7 +180,7 @@ endif if host_machine.system() == 'darwin' # Maintain compatibility with autotools on macOS - common_ldflags += [ '-compatibility_version 1', '-current_version 1.0', ] + common_ldflags += [ '-compatibility_version', darwin_versions[0], '-current_version', darwin_versions[1]] gdk_pixbuf_conf.set('OS_DARWIN', 1) endif -- cgit v1.2.1