summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2025-04-11 10:53:02 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2025-04-13 14:26:58 +0300
commiteca9d81eb461b4c9c9f02e064419b207bf417d27 (patch)
treee51b48e0baab2cc133690ec94b2c8207fff08119
parenta717554cdb726cf963556ecf6516f4386d5a879b (diff)
downloadmeson-eca9d81eb461b4c9c9f02e064419b207bf417d27.tar.gz
linkers: fix Apple ld -install_name with custom suffix
Use the custom suffix instead of .dylib, so that executables that are linked to a custom-suffix library can be ran from the build tree. Fixes: #14470
-rw-r--r--mesonbuild/linkers/linkers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/linkers/linkers.py b/mesonbuild/linkers/linkers.py
index 58753e63b..0302ed7c6 100644
--- a/mesonbuild/linkers/linkers.py
+++ b/mesonbuild/linkers/linkers.py
@@ -857,7 +857,7 @@ class AppleDynamicLinker(PosixDynamicLinkerMixin, DynamicLinker):
install_name = ['@rpath/', prefix, shlib_name]
if soversion is not None:
install_name.append('.' + soversion)
- install_name.append('.dylib')
+ install_name.append('.' + suffix)
args = ['-install_name', ''.join(install_name)]
if darwin_versions:
args.extend(['-compatibility_version', darwin_versions[0],