Skip to content

Commit 9aec36d

Browse files
authored
Merge pull request #351 from IntelPython/fix-rpath-osx
Apply RPATH logic for OSX
2 parents 53909c7 + 70c7a02 commit 9aec36d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎meson.build‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,13 @@ cc = meson.get_compiler('c')
2929
c_args = ['-DNDEBUG']
3030

3131
rpath_link_args = []
32-
if host_machine.system() == 'linux'
33-
rpath = '$ORIGIN' / '../..' + ':' + '$ORIGIN' / '../../..'
32+
if host_machine.system() != 'windows'
33+
if host_machine.system() == 'darwin'
34+
origin = '@loader_path'
35+
else
36+
origin = '$ORIGIN'
37+
endif
38+
rpath = origin / '../..' + ':' + origin / '../../..'
3439
rpath_link_args = ['-Wl,-rpath,' + rpath]
3540
endif
3641

0 commit comments

Comments
 (0)