build: only whole archive on static v8 builds
authorTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 10 Dec 2013 18:10:34 +0000 (10:10 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 10 Dec 2013 18:11:28 +0000 (10:11 -0800)
Closes #6629

node.gyp

index 3a1b8c9..ae8c7e5 100644 (file)
--- a/node.gyp
+++ b/node.gyp
           ],
         }],
         [
-          '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',
             ],