Chromium Code Reviews| Index: tools/gyp/v8.gyp |
| diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp |
| index a6f7d287b888ef5fa438af32af2d05b8c7aa59f9..4fabc2344bf9a8e509b6ffad4eaf7bdd64be0cd4 100644 |
| --- a/tools/gyp/v8.gyp |
| +++ b/tools/gyp/v8.gyp |
| @@ -1163,11 +1163,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' |