Chromium Code Reviews| Index: tools/gyp/v8.gyp |
| diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
| index 916fd28ad63fda353edb48d557efb1da9000876d..00730033e3372054d3e163f8bef0dde714471eba 100644 |
| --- a/tools/gyp/v8.gyp |
| +++ b/tools/gyp/v8.gyp |
| @@ -1249,11 +1249,19 @@ |
| 'toolsets': ['target'], |
| }], |
| ['OS=="linux"', { |
| - 'link_settings': { |
| - 'libraries': [ |
| - '-lrt' |
| - ] |
| - }, |
| + 'conditions': [ |
| + ['nacl_target_arch=="none"', { |
| + 'link_settings': { |
| + 'libraries': [ |
| + '-lrt' |
| + ], |
| + }, |
| + }, { |
| + 'defines': [ |
| + 'V8_LIBRT_NOT_AVAILABLE=1', |
| + ], |
| + }], |
| + ], |
| 'sources': [ |
| '../../src/base/platform/platform-linux.cc', |
| '../../src/base/platform/platform-posix.cc' |