Skip to content

Commit dcef7b8

Browse files
jeroentargos
authored andcommitted
build: include stubs in shared library
This is needed for external applications that link to shared libnode. Fixes #27431 PR-URL: #28897 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent efe9b97 commit dcef7b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

node.gyp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,12 @@
686686
'msvs_disabled_warnings!': [4244],
687687

688688
'conditions': [
689+
[ 'node_shared=="true"', {
690+
'sources': [
691+
'src/node_snapshot_stub.cc',
692+
'src/node_code_cache_stub.cc',
693+
]
694+
}],
689695
[ 'node_shared=="true" and node_module_version!="" and OS!="win"', {
690696
'product_extension': '<(shlib_suffix)',
691697
'xcode_settings': {

0 commit comments

Comments
 (0)