diff --git a/node.gyp b/node.gyp index 3a1b8c9cd81..ae8c7e5e265 100644 --- a/node.gyp +++ b/node.gyp @@ -291,7 +291,7 @@ ], }], [ - 'OS=="linux"', { + 'OS=="linux" and node_shared_v8=="false"', { 'ldflags': [ '-Wl,--whole-archive <(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a -Wl,--no-whole-archive', ],