Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShigeki Ohtsu <ohtsu@iij.ad.jp>2012-02-27 15:32:13 +0400
committerisaacs <i@izs.me>2012-02-28 00:02:25 +0400
commit82ad1f87fa99b420a97cc9bfae727fce0b1bf8a4 (patch)
tree0f33f632e37e0af87c8732b614ba93c0cdb39b9d /common.gypi
parent0e7dad3f6ee283904a34b08bfb5db38db8a89169 (diff)
Fix #2830 for the old gcc bug on SmartOS
Diffstat (limited to 'common.gypi')
-rw-r--r--common.gypi12
1 files changed, 7 insertions, 5 deletions
diff --git a/common.gypi b/common.gypi
index 1dbef02f972..699230ac337 100644
--- a/common.gypi
+++ b/common.gypi
@@ -36,12 +36,14 @@
'Release': {
'conditions': [
[ 'OS!="solaris"', {
- 'cflags': [ '-fomit-frame-pointer' ]
+ 'cflags': [ '-O3','-fomit-frame-pointer', '-fdata-sections', '-ffunction-sections' ],
+ }],
+ [ 'OS=="solaris" and gcc_optimize_level =="-O3"', {
+ 'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
+ }],
+ [ 'OS=="solaris" and gcc_optimize_level =="-O"', {
+ 'cflags': [ '-O', '-fdata-sections', '-ffunction-sections' ], # For bug fix of #2830
}],
- ],
- # 'defines': [ 'NDEBUG' ],
- 'cflags': [ '-O3', '-fdata-sections', '-ffunction-sections' ],
- 'conditions': [
['target_arch=="x64"', {
'msvs_configuration_platform': 'x64',
}],