From ed138baff395ffc2ee8f41e99012866fdc27b4f4 Mon Sep 17 00:00:00 2001 From: Jeroen Ooms Date: Mon, 29 Jul 2019 20:15:14 +0200 Subject: build: include stubs in shared library This is needed for external applications that link to shared libnode. Fixes #27431 PR-URL: https://github.com/nodejs/node/pull/28897 Reviewed-By: Ben Noordhuis Reviewed-By: Rich Trott --- node.gyp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/node.gyp b/node.gyp index 55b7da02cc..4eae262a61 100644 --- a/node.gyp +++ b/node.gyp @@ -686,6 +686,12 @@ 'msvs_disabled_warnings!': [4244], 'conditions': [ + [ 'node_shared=="true"', { + 'sources': [ + 'src/node_snapshot_stub.cc', + 'src/node_code_cache_stub.cc', + ] + }], [ 'node_shared=="true" and node_module_version!="" and OS!="win"', { 'product_extension': '<(shlib_suffix)', 'xcode_settings': { -- cgit v1.2.3