Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: third_party/libevent/libevent.gyp

Issue 203076: Fix the Linux shared build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/libevent/libevent.gyp
===================================================================
--- third_party/libevent/libevent.gyp (revision 26276)
+++ third_party/libevent/libevent.gyp (working copy)
@@ -37,8 +37,18 @@
# libevent has platform-specific implementation files. Since its
# native build uses autoconf, platform-specific config.h files are
# provided and live in platform-specific directories.
- [ 'OS == "linux"', { 'sources': [ 'epoll.c', 'epoll_sub.c' ],
- 'include_dirs': [ 'linux' ] } ],
+ [ 'OS == "linux"', {
+ 'sources': [ 'epoll.c', 'epoll_sub.c' ],
+ 'include_dirs': [ 'linux' ],
+ 'link_settings':
+ { 'libraries': [
+ # We need rt for clock_gettime().
+ # TODO(port) Maybe on FreeBSD as well?
+ '-lrt',
+ ],
+ },
+ }
+ ],
[ 'OS == "mac" or OS == "freebsd"', { 'sources': [ 'kqueue.c' ],
'include_dirs': [ 'mac' ] } ],
],

Powered by Google App Engine
This is Rietveld 408576698