Skip to content

Commit 28119c3

Browse files
authored
Merge pull request #222 from IntelPython/use-proper-rpath-set-for-macos
Fix macOS rpath: emit one -rpath per path instead of colon-joining
2 parents 48b89c8 + 19e5131 commit 28119c3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1212
* 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)
1313

1414
### Fixed
15+
* 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)
1516

1617
## [2.7.2] (05/11/2026)
1718

meson.build

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ if host_machine.system() != 'windows'
3535
else
3636
origin = '$ORIGIN'
3737
endif
38-
rpath = origin / '../..' + ':' + origin / '../../..'
39-
rpath_link_args = ['-Wl,-rpath,' + rpath]
38+
39+
rpath_link_args = [
40+
'-Wl,-rpath,' + origin / '../..',
41+
'-Wl,-rpath,' + origin / '../../..',
42+
]
4043
endif
4144

4245
# C extension

0 commit comments

Comments
 (0)