[gdk-pixbuf: 1/2] meson: use an autotools compatible compatibility_version/current_version on macOS
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdk-pixbuf: 1/2] meson: use an autotools compatible compatibility_version/current_version on macOS
- Date: Fri, 16 Nov 2018 16:25:19 +0000 (UTC)
commit df43643be2c8668ba4c1f7bb702ee32a78dc096a
Author: Christoph Reiter <creiter src gnome org>
Date: Fri Nov 16 16:55:49 2018 +0100
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(-)
---
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]