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