diff --git a/tools/addon.gypi b/tools/addon.gypi index e7152afe4bf9..e8fb4e289703 100644 --- a/tools/addon.gypi +++ b/tools/addon.gypi @@ -12,6 +12,9 @@ 'conditions': [ [ 'OS=="mac"', { 'libraries': [ '-undefined dynamic_lookup' ], + }], + [ 'OS=="win"', { + 'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ], }] ] } diff --git a/tools/gyp_addon b/tools/gyp_addon index a93f7b27d912..2dac0e004dd0 100755 --- a/tools/gyp_addon +++ b/tools/gyp_addon @@ -16,6 +16,7 @@ if __name__ == '__main__': args.extend(['-I', common_gypi]) args.extend(['-Dlibrary=shared_library']) args.extend(['-Dvisibility=default']) + args.extend(['-Dnode_root_dir=%s' % node_root]) args.extend(['--depth=.']); gyp_args = list(args)