build: don't enable --gc-sections on sunos
The SunOS linker doesn't support it. Fixes build breakage introduced in commit 9b3de60.
This commit is contained in:
parent
7684e0b554
commit
0181fee411
@ -50,7 +50,6 @@
|
|||||||
},
|
},
|
||||||
'Release': {
|
'Release': {
|
||||||
'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
|
'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
|
||||||
'ldflags': [ '-Wl,--gc-sections' ],
|
|
||||||
'conditions': [
|
'conditions': [
|
||||||
['target_arch=="x64"', {
|
['target_arch=="x64"', {
|
||||||
'msvs_configuration_platform': 'x64',
|
'msvs_configuration_platform': 'x64',
|
||||||
@ -59,6 +58,9 @@
|
|||||||
'cflags': [ '-fno-omit-frame-pointer' ],
|
'cflags': [ '-fno-omit-frame-pointer' ],
|
||||||
# pull in V8's postmortem metadata
|
# pull in V8's postmortem metadata
|
||||||
'ldflags': [ '-Wl,-z,allextract' ]
|
'ldflags': [ '-Wl,-z,allextract' ]
|
||||||
|
}, {
|
||||||
|
# Doesn't work with the Solaris linker.
|
||||||
|
'ldflags': [ '-Wl,--gc-sections' ],
|
||||||
}],
|
}],
|
||||||
['clang == 0 and gcc_version >= 40', {
|
['clang == 0 and gcc_version >= 40', {
|
||||||
'cflags': [ '-fno-tree-vrp' ], # Work around compiler bug.
|
'cflags': [ '-fno-tree-vrp' ], # Work around compiler bug.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user