From dc09ddcb9d8d304296039d48f2e81c533499186a Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Wed, 28 Aug 2013 14:11:07 +0000 Subject: [PATCH] Cross-compiling from Linux to Android requires -lrt for the host toolset. R=yurys@chromium.org Review URL: https://codereview.chromium.org/23656004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16402 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- tools/gyp/v8.gyp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/gyp/v8.gyp b/tools/gyp/v8.gyp index 384f451..708defe 100644 --- a/tools/gyp/v8.gyp +++ b/tools/gyp/v8.gyp @@ -722,6 +722,15 @@ }], ], }, { + 'link_settings': { + 'target_conditions': [ + ['_toolset=="host"', { + 'libraries': [ + '-lrt' + ] + }] + ] + }, 'sources': [ '../../src/platform-linux.cc' ] -- 2.7.4