aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.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/backend/ninjabackend.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/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 41f840d..2ba9178 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2392,7 +2392,7 @@ rule FORTRAN_DEP_HACK
commands += linker.get_pic_args()
# Add -Wl,-soname arguments on Linux, -install_name on OS X
commands += linker.get_soname_args(target.prefix, target.name, target.suffix,
- abspath, target.soversion,
+ abspath, target.soversion, target.ltversion,
isinstance(target, build.SharedModule))
# This is only visited when building for Windows using either GCC or Visual Studio
if target.vs_module_defs and hasattr(linker, 'gen_vs_module_defs_args'):