summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-07-18 11:04:30 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-09-05 11:56:23 +0100
commitec2525b4aad70379387a95142ad09b396c660f0b (patch)
tree8db5e6b53920297191301357301f2f3126645317
parent5b58d89e22637da89b409b2c5ae4730845ba90c5 (diff)
downloadjson-glib-ec2525b4aad70379387a95142ad09b396c660f0b.tar.gz
build: Update the macOS linker flags
Use the interface and binary ages to define the current version. https://bugzilla.gnome.org/show_bug.cgi?id=785053
-rw-r--r--meson.build5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index ff41fc7..5d33c64 100644
--- a/meson.build
+++ b/meson.build
@@ -147,7 +147,10 @@ endif
# Maintain compatibility with autotools
if host_system == 'darwin'
- common_ldflags += [ '-compatibility_version 1', '-current_version 1.0', ]
+ common_ldflags += [
+ '-compatibility_version 1',
+ '-current_version @0@.@1@'.format(json_binary_age - json_interface_age, json_interface_age),
+ ]
endif
root_dir = include_directories('.')