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.
This commit is contained in:
Timothy J Fontaine committed 2013-12-01 18:57:43 -08:00
1 parent fcfaa392ae
commit 6877e64fa8
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -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': {
+6
View File
@@ -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': {