Skip to content

Commit

Permalink
build: don't enable --gc-sections on sunos
Browse files Browse the repository at this point in the history
The SunOS linker doesn't support it. Fixes build breakage introduced
in commit 9b3de60.
  • Loading branch information
bnoordhuis committed Jul 6, 2013
1 parent 7684e0b commit 0181fee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common.gypi
Expand Up @@ -50,7 +50,6 @@
},
'Release': {
'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
'ldflags': [ '-Wl,--gc-sections' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
Expand All @@ -59,6 +58,9 @@
'cflags': [ '-fno-omit-frame-pointer' ],
# 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.
Expand Down

0 comments on commit 0181fee

Please sign in to comment.