diff options
author | spang <spang@chromium.org> | 2016-01-08 10:43:10 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-01-08 18:43:54 +0000 |
commit | 651aab406b2684042fcb0d87fe5f27a68bd8764b (patch) | |
tree | 452776c8311afef2f40500224b3450ca2897cada /device/BUILD.gn | |
parent | 8e8eec8a2960f29ac4bf26f90bba6bf0f1816bc2 (diff) | |
download | chromium_src-651aab406b2684042fcb0d87fe5f27a68bd8764b.zip chromium_src-651aab406b2684042fcb0d87fe5f27a68bd8764b.tar.gz chromium_src-651aab406b2684042fcb0d87fe5f27a68bd8764b.tar.bz2 |
Add librt to default libs on linux
It's needed by clock_gettime() on glibc < 2.17, and that function is
called in various places in the codebase. This library is part of glibc,
so just put in the default toolchain libs so we get it everywhere.
It fixes the following build error:
gn gen out_gn_ozone --args='use_ozone=true toolkit_views=false is_component_build=true'
ninja -C out_gn_ozone content_shell
../ui/gl/sync_control_vsync_provider.cc:70: error: undefined reference to
'clock_gettime'
../ui/gl/sync_control_vsync_provider.cc:71: error: undefined reference to
'clock_gettime'
Review URL: https://codereview.chromium.org/1565983002
Cr-Commit-Position: refs/heads/master@{#368383}
Diffstat (limited to 'device/BUILD.gn')
-rw-r--r-- | device/BUILD.gn | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/device/BUILD.gn b/device/BUILD.gn index 0a4b688..0f439a6 100644 --- a/device/BUILD.gn +++ b/device/BUILD.gn @@ -170,10 +170,6 @@ test("device_unittests") { deps += [ "//dbus" ] } - if (is_posix && !is_android && !is_mac) { - libs = [ "rt" ] - } - if (is_mac) { deps += [ "//third_party/ocmock" ] ldflags = [ "-ObjC" ] |