Skip to content

Commit 410ce34

Browse files
committed
apply rpath logic for OSX
identical logic was used in mkl-service
1 parent e22c1c9 commit 410ce34

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)