build: don't enable gc-sections
authorTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 18 Feb 2014 04:29:30 +0000 (20:29 -0800)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 18 Feb 2014 04:29:30 +0000 (20:29 -0800)
In some scenarios this will strip the DOF sections for DTrace, and in a
future world where we re-export all static libraries it would defeat
that purpose.

common.gypi

index 6d6a43d..4b8aa77 100644 (file)
@@ -66,9 +66,6 @@
           ['OS=="solaris"', {
             # pull in V8's postmortem metadata
             'ldflags': [ '-Wl,-z,allextract' ]
-          }, {
-            # Doesn't work with the Solaris linker.
-            'ldflags': [ '-Wl,--gc-sections' ],
           }],
           ['clang == 0 and gcc_version >= 40', {
             'cflags': [ '-fno-tree-vrp' ],  # Work around compiler bug.