From bdee13dea87a4fde7d39c3b42a2f5be428d74e14 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Fri, 25 Aug 2017 14:10:23 -0700 Subject: [PATCH] We should be using the module-relative @loader_path. @executable_path is relative to the main node process binary --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f9928143..c4d7fccff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -468,7 +468,7 @@ if(ENABLE_MASON) install(FILES ${TBBGlob} DESTINATION lib) endforeach() if(APPLE) - set(LINKER_FLAGS "${TBB_LINKER_RPATHS} -Wl,-rpath -Wl,@executable_path") + set(LINKER_FLAGS "${TBB_LINKER_RPATHS} -Wl,-rpath -Wl,@loader_path") elseif(UNIX) set(LINKER_FLAGS "${TBB_LINKER_RPATHS} '-Wl,-rpath,$ORIGIN' -Wl,-z,origin") endif()