diff options
Diffstat (limited to 'third_party/libevent/libevent.gyp')
-rw-r--r-- | third_party/libevent/libevent.gyp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/third_party/libevent/libevent.gyp b/third_party/libevent/libevent.gyp index fc95efb..352fb32 100644 --- a/third_party/libevent/libevent.gyp +++ b/third_party/libevent/libevent.gyp @@ -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' ] } ], ], |