From: Timothy J Fontaine Date: Mon, 2 Dec 2013 02:57:43 +0000 (-0800) Subject: build: include postmortem symbols on linux X-Git-Tag: v0.10.23~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6877e64fa8ebd1a1017bb4e298a007d98136c133;p=platform%2Fupstream%2Fnodejs.git build: include postmortem symbols on linux Previously we were building the symbols, but the linker was garbage collecting the symbols because they weren't used. Inform the linker that we want to keep all symbols from v8 around. --- diff --git a/common.gypi b/common.gypi index 9ecfc4d..abe46be 100644 --- a/common.gypi +++ b/common.gypi @@ -79,10 +79,12 @@ ], }], ['OS=="solaris"', { - 'cflags': [ '-fno-omit-frame-pointer' ], # pull in V8's postmortem metadata 'ldflags': [ '-Wl,-z,allextract' ] }], + ['OS!="mac" and OS!="win"', { + 'cflags': [ '-fno-omit-frame-pointer' ], + }], ], 'msvs_settings': { 'VCCLCompilerTool': { diff --git a/node.gyp b/node.gyp index 89aa36f..3a1b8c9 100644 --- a/node.gyp +++ b/node.gyp @@ -290,6 +290,12 @@ 'PLATFORM="sunos"', ], }], + [ + 'OS=="linux"', { + 'ldflags': [ + '-Wl,--whole-archive <(PRODUCT_DIR)/obj.target/deps/v8/tools/gyp/libv8_base.a -Wl,--no-whole-archive', + ], + }], ], 'msvs_settings': { 'VCLinkerTool': {