diff --git a/node.gyp b/node.gyp index e1adf8cd12e30b..285eed7b406a41 100644 --- a/node.gyp +++ b/node.gyp @@ -956,6 +956,11 @@ [ 'OS=="win" and node_shared=="true"', { 'type': 'none', }], + [ 'node_shared=="true"', { + 'xcode_settings': { + 'OTHER_LDFLAGS': [ '-Wl,-rpath,@loader_path', ], + }, + }], ], } ], # end targets