summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2016-12-26 05:17:41 +0000
committerPeter Powell <petpow@saberuk.com>2016-12-26 05:17:41 +0000
commit27facf2e0cc75da52ce3acf2c21a06ea26d1d55d (patch)
treea168c55502a3bc3bb235927d0fd8737f100fca89 /configure
parent62aa55356300afd03fc1737114fa8c3929df0ed2 (diff)
Fix the clock_gettime() test on macOS Sierra.
macOS now supports clock_gettime() but it is part of libSystem rather than librt which does not exist on macOS.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 696d94886..4c80500fc 100755
--- a/configure
+++ b/configure
@@ -149,7 +149,7 @@ unless ($config{CXX}) {
}
my %compiler = get_compiler_info($config{CXX});
-$config{HAS_CLOCK_GETTIME} = run_test 'clock_gettime()', test_file($config{CXX}, 'clock_gettime.cpp', '-lrt');
+$config{HAS_CLOCK_GETTIME} = run_test 'clock_gettime()', test_file($config{CXX}, 'clock_gettime.cpp', $^O eq 'darwin' ? undef : '-lrt');
$config{HAS_EVENTFD} = run_test 'eventfd()', test_file($config{CXX}, 'eventfd.cpp');
if ($config{HAS_EPOLL} = run_test 'epoll', test_header($config{CXX}, 'sys/epoll.h')) {