Commit 65b69ae5 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜

meson: Maintain macOS ABI compatibility

Need to use the correct dylib versioning.
parent 195fffb0
......@@ -11,7 +11,9 @@ orc_version_micro = meson.project_version().split('.')[2]
# maintaining compatibility with the previous libtool versioning
soversion = 0
libversion = '@0@.@1@.0'.format(soversion, orc_version_micro.to_int())
curversion = orc_version_micro.to_int()
libversion = '@0@.@1@.0'.format(soversion, curversion)
osxversion = curversion + 1
add_project_arguments('-DHAVE_CONFIG_H', language : 'c')
......
......@@ -7,6 +7,7 @@ orc_test_shr = shared_library ('orc-test-' + orc_api,
orc_test_sources,
version : libversion,
soversion : soversion,
darwin_versions : osxversion,
include_directories : orc_inc,
c_args : orc_c_args + ['-DBUILDING_ORC_TEST'],
dependencies : [libm, orc_dep],
......
......@@ -105,6 +105,7 @@ orc_shr = shared_library ('orc-' + orc_api,
orc_sources,
version : libversion,
soversion : soversion,
darwin_versions : osxversion,
include_directories : orc_inc,
c_args : orc_c_args + ['-DBUILDING_ORC'],
dependencies : orc_dependencies,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment