diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ecf1cab..f25b2bde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [2.3.1] - 2026-07-31 + +### Fixed +* Fixed RPATH logic for OSX builds [gh-351](https://github.com/IntelPython/mkl_fft/pull/351) + ## [2.3.0] - 2026-07-30 ### Added diff --git a/meson.build b/meson.build index 6e07cb01..032703ec 100644 --- a/meson.build +++ b/meson.build @@ -29,8 +29,13 @@ cc = meson.get_compiler('c') c_args = ['-DNDEBUG'] rpath_link_args = [] -if host_machine.system() == 'linux' - rpath = '$ORIGIN' / '../..' + ':' + '$ORIGIN' / '../../..' +if host_machine.system() != 'windows' + if host_machine.system() == 'darwin' + origin = '@loader_path' + else + origin = '$ORIGIN' + endif + rpath = origin / '../..' + ':' + origin / '../../..' rpath_link_args = ['-Wl,-rpath,' + rpath] endif diff --git a/mkl_fft/_version.py b/mkl_fft/_version.py index 55e47090..3a5935a2 100644 --- a/mkl_fft/_version.py +++ b/mkl_fft/_version.py @@ -1 +1 @@ -__version__ = "2.3.0" +__version__ = "2.3.1"