From fa6ca160548d7e8df9c4c724e6c96f5e004e5316 Mon Sep 17 00:00:00 2001 From: Tom Schoonjans Date: Fri, 3 Nov 2017 13:44:38 +0000 Subject: Add macOS linker versioning information This patch exploits the information residing in ltversion to set the -compatibility_version and -current_version flags that are passed to the linker on macOS. --- mesonbuild/compilers/d.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mesonbuild/compilers/d.py') diff --git a/mesonbuild/compilers/d.py b/mesonbuild/compilers/d.py index 474e1bd..b76bfba 100644 --- a/mesonbuild/compilers/d.py +++ b/mesonbuild/compilers/d.py @@ -89,9 +89,9 @@ class DCompiler(Compiler): def get_std_shared_lib_link_args(self): return ['-shared'] - def get_soname_args(self, prefix, shlib_name, suffix, path, soversion, is_shared_module): + def get_soname_args(self, prefix, shlib_name, suffix, path, soversion, version, is_shared_module): # FIXME: Make this work for Windows, MacOS and cross-compiling - return get_gcc_soname_args(GCC_STANDARD, prefix, shlib_name, suffix, path, soversion, is_shared_module) + return get_gcc_soname_args(GCC_STANDARD, prefix, shlib_name, suffix, path, soversion, version, is_shared_module) def get_feature_args(self, kwargs, build_to_src): res = [] -- cgit v1.1