diff options
author | Shigeki Ohtsu <ohtsu@iij.ad.jp> | 2012-02-27 20:32:13 +0900 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-02-27 12:02:25 -0800 |
commit | 82ad1f87fa99b420a97cc9bfae727fce0b1bf8a4 (patch) | |
tree | 0f33f632e37e0af87c8732b614ba93c0cdb39b9d /common.gypi | |
parent | 0e7dad3f6ee283904a34b08bfb5db38db8a89169 (diff) | |
download | node-82ad1f87fa99b420a97cc9bfae727fce0b1bf8a4.tar.gz |
Fix #2830 for the old gcc bug on SmartOS
Diffstat (limited to 'common.gypi')
-rw-r--r-- | common.gypi | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/common.gypi b/common.gypi index 1dbef02f9..699230ac3 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', }], |