diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-11 10:53:02 +0200 |
|---|---|---|
| committer | Jussi Pakkanen <jpakkane@gmail.com> | 2025-04-13 14:26:58 +0300 |
| commit | eca9d81eb461b4c9c9f02e064419b207bf417d27 (patch) | |
| tree | e51b48e0baab2cc133690ec94b2c8207fff08119 | |
| parent | a717554cdb726cf963556ecf6516f4386d5a879b (diff) | |
| download | meson-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.py | 2 |
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], |
