Created
November 19, 2013 23:46
-
-
Save tjfontaine/7554675 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/common.gypi b/common.gypi | |
index 61172ef..6bcc221 100644 | |
--- a/common.gypi | |
+++ b/common.gypi | |
@@ -49,7 +49,7 @@ | |
}, | |
}, | |
'Release': { | |
- 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ], | |
+ 'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections', '-fno-omit-frame-pointer' ], | |
'conditions': [ | |
['target_arch=="x64"', { | |
'msvs_configuration_platform': 'x64', | |
@@ -60,7 +60,7 @@ | |
'ldflags': [ '-Wl,-z,allextract' ] | |
}, { | |
# Doesn't work with the Solaris linker. | |
- 'ldflags': [ '-Wl,--gc-sections' ], | |
+ 'ldflags': [ '-Wl,--no-gc-sections' ], | |
}], | |
['clang == 0 and gcc_version >= 40', { | |
'cflags': [ '-fno-tree-vrp' ], # Work around compiler bug. | |
diff --git a/node.gyp b/node.gyp | |
index 095ba84..1d16ecb 100644 | |
--- a/node.gyp | |
+++ b/node.gyp | |
@@ -79,6 +79,10 @@ | |
'node_js2c#host', | |
], | |
+ 'ldflags': [ | |
+ '-Wl,--whole-archive <(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.x64.a -Wl,--no-whole-archive' | |
+ ], | |
+ | |
'include_dirs': [ | |
'src', | |
'tools/msvs/genfiles', |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment