summaryrefslogtreecommitdiff
path: root/common.gypi
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-07-06 18:48:52 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2013-07-06 18:49:02 +0200
commit0181fee411e217236c4ec0bf22c61466df5a56b5 (patch)
treed91300776ab979a38e86085e9f340be9913d19ae /common.gypi
parent7684e0b554c7d7ee007959e250700473f64c9fa6 (diff)
downloadnode-0181fee411e217236c4ec0bf22c61466df5a56b5.tar.gz
build: don't enable --gc-sections on sunos
The SunOS linker doesn't support it. Fixes build breakage introduced in commit 9b3de60.
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.gypi b/common.gypi
index 14054ce62..5572c7502 100644
--- a/common.gypi
+++ b/common.gypi
@@ -50,7 +50,6 @@
},
'Release': {
'cflags': [ '-O3', '-ffunction-sections', '-fdata-sections' ],
- 'ldflags': [ '-Wl,--gc-sections' ],
'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
@@ -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.