From be21c115eca594e9d0c509de39b48a500c91f8f1 Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 23 Jul 2026 15:08:02 +0200 Subject: [PATCH 1/2] Pass two separate RPATH entry Emit one -rpath per path. Colon-joining works only for ELF (Linux); on Mach-O the colon is literal, producing a single unusable LC_RPATH. --- meson.build | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 12b79e0..1b9ce89 100644 --- a/meson.build +++ b/meson.build @@ -35,8 +35,11 @@ if host_machine.system() != 'windows' else origin = '$ORIGIN' endif - rpath = origin / '../..' + ':' + origin / '../../..' - rpath_link_args = ['-Wl,-rpath,' + rpath] + + rpath_link_args = [ + '-Wl,-rpath,' + origin / '../..', + '-Wl,-rpath,' + origin / '../../..', + ] endif # C extension From 19e5131561d0d4afed00e8a0f33942eb02e96d8d Mon Sep 17 00:00:00 2001 From: Anton Volkov Date: Thu, 23 Jul 2026 15:10:10 +0200 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 876c940..57286dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Migrated the build system from `setuptools` to `meson-python`, removing `setup.py` in favor of `meson.build` [gh-174](https://github.com/IntelPython/mkl-service/pull/174) ### Fixed +* Emit one `-rpath` linker argument per path instead of colon-joining them, so the runtime library search path is baked correctly into macOS (Mach-O) extensions [gh-222](https://github.com/IntelPython/mkl-service/pull/222) ## [2.7.2] (05/11/2026)