summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorFedor Indutny <fedor@indutny.com>2014-07-17 09:55:07 +0400
committerFedor Indutny <fedor@indutny.com>2014-07-17 15:16:29 +0400
commit1d3d8c0e5545b1f253dbe4c3525eeb2f1312b689 (patch)
treed2854731cb48246d149ec7bab4807846d6297d7f /node.gyp
parent9d9fc3fa3063c9117119c56e69679269250c1213 (diff)
downloadandroid-node-v8-1d3d8c0e5545b1f253dbe4c3525eeb2f1312b689.tar.gz
android-node-v8-1d3d8c0e5545b1f253dbe4c3525eeb2f1312b689.tar.bz2
android-node-v8-1d3d8c0e5545b1f253dbe4c3525eeb2f1312b689.zip
gyp: do not let `v8dbg_` slip away on osx
Pass `-force_load` to linker when linking to `libv8_base` to preserve `v8dbg_` symbols, which are useful for debugging.
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp8
1 files changed, 8 insertions, 0 deletions
diff --git a/node.gyp b/node.gyp
index f6586c4d44..38311a1cc4 100644
--- a/node.gyp
+++ b/node.gyp
@@ -271,6 +271,14 @@
'PLATFORM="darwin"',
],
}],
+ [ 'OS=="mac" and v8_postmortem_support=="true"', {
+ # Do not let `v8dbg_` symbols slip away
+ 'xcode_settings': {
+ 'OTHER_LDFLAGS': [
+ '-Wl,-force_load,<(V8_BASE)',
+ ],
+ },
+ }],
[ 'OS=="freebsd"', {
'libraries': [
'-lutil',