summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2016-12-29 16:05:19 +0100
committerGitHub <noreply@github.com>2016-12-29 16:05:19 +0100
commitb16bc08b2c7dd538f33aa920504c9f476582d356 (patch)
treed32d41adc9f6afc2aa18c7306ea7f92e5a92f68c /configure
parent2d3564eb47c4be93aba8254db9a3a3524e935b5e (diff)
parent27facf2e0cc75da52ce3acf2c21a06ea26d1d55d (diff)
Merge pull request #1273 from SaberUK/master+bs
Fix the clock_gettime() test on macOS Sierra
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 73317a3d3..62f7b341b 100755
--- a/configure
+++ b/configure
@@ -155,7 +155,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')) {