aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/d.py
diff options
context:
space:
mode:
authorTom Schoonjans <Tom.Schoonjans@diamond.ac.uk>2017-11-03 13:44:38 +0000
committerJussi Pakkanen <jpakkane@gmail.com>2018-04-16 22:26:16 +0300
commitfa6ca160548d7e8df9c4c724e6c96f5e004e5316 (patch)
tree24568f4fe81a1a4201e4e4e5e9800abc28a5d23d /mesonbuild/compilers/d.py
parent0e00470d8c9711e62848a1d697d156cbab66e0bc (diff)
downloadmeson-fa6ca160548d7e8df9c4c724e6c96f5e004e5316.zip
meson-fa6ca160548d7e8df9c4c724e6c96f5e004e5316.tar.gz
meson-fa6ca160548d7e8df9c4c724e6c96f5e004e5316.tar.bz2
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.
Diffstat (limited to 'mesonbuild/compilers/d.py')
-rw-r--r--mesonbuild/compilers/d.py4
1 files changed, 2 insertions, 2 deletions
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 = []