From 94ca7a751c21f42e402d7b0ba293bba71f8d8a1a Mon Sep 17 00:00:00 2001 From: "sgk@google.com" Date: Wed, 25 Mar 2009 18:13:58 +0000 Subject: [PATCH] src/platform-linux.cc in v8_base now seems to need '-lrt' for clock_gettime(). Add it to link_settings, and add the right export_dependent_settings to propagate it through the hierarchy appropriately. Review URL: http://codereview.chromium.org/53057 git-svn-id: http://src.chromium.org/svn/trunk/src/build@12468 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- temp_gyp/v8.gyp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/temp_gyp/v8.gyp b/temp_gyp/v8.gyp index 99270e5fd..59cb16919 100644 --- a/temp_gyp/v8.gyp +++ b/temp_gyp/v8.gyp @@ -335,8 +335,14 @@ ['exclude', 'src/platform-.*\\.cc$' ], ], 'conditions': [ - ['OS=="linux"', + ['OS=="linux"', { + 'link_settings': { + 'libraries': [ + # Needed for clock_gettime() used by src/platform-linux.cc. + '-lrt', + ], + }, 'sources/': [ ['include', 'src/platform-linux\\.cc$'], ['include', 'src/platform-posix\\.cc$'] @@ -379,6 +385,9 @@ '<(SHARED_INTERMEDIATE_DIR)/v8/libraries.cc', '../../v8/src/snapshot-empty.cc', ], + 'export_dependent_settings': [ + 'v8_base', + ], }, { 'target_name': 'mksnapshot', @@ -424,6 +433,9 @@ '../../v8/include', ], }, + 'export_dependent_settings': [ + 'v8_base', + ], }, { 'target_name': 'v8_shell',