Skip to content

Commit 6dccebe

Browse files
committed
Set correct rpath in shared library.
This could allow the package to be loaded even without the manual library.dynam() in R.
1 parent 5b167bf commit 6dccebe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Makevars.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ endif
9797

9898
# When TBB_LIB is unset on MacOS, link to the bundled version (#206)
9999
ifeq ($(USE_TBB)$(TBB_LIB),Mac)
100-
PKG_LIBS += -Ltbb/build/lib_release -ltbb -ltbbmalloc
100+
PKG_LIBS += -Ltbb/build/lib_release -ltbb -Wl,-rpath,'@loader_path/../lib'
101101
endif
102102

103103
# For Solaris detect if this is 32-bit R on x86 and if so forward that to TBB

0 commit comments

Comments
 (0)