diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-08-29 13:41:08 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-08-29 13:41:08 (GMT) |
commit | 7efb83393cbe08924682c6852e94d3c4a4033c34 (patch) | |
tree | b8ac264faa3d2470659df159932d27adcf9cd9ce /configure.ac | |
parent | 0dc10e0d1c96c39602ae08403ed758fa72b6d547 (diff) | |
download | cpython-7efb83393cbe08924682c6852e94d3c4a4033c34.zip cpython-7efb83393cbe08924682c6852e94d3c4a4033c34.tar.gz cpython-7efb83393cbe08924682c6852e94d3c4a4033c34.tar.bz2 |
Issue #22287: On UNIX, _PyTime_gettimeofday() now uses
clock_gettime(CLOCK_REALTIME) if available. As a side effect, Python now
depends on the librt library on Solaris and on Linux (only with glibc older
than 2.17).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 086bdd4..05dc0e6 100644 --- a/configure.ac +++ b/configure.ac @@ -3319,6 +3319,7 @@ AC_CHECK_FUNCS(gettimeofday, AC_CHECK_FUNCS(clock_gettime, [], [ AC_CHECK_LIB(rt, clock_gettime, [ + LIBS="$LIBS -lrt" AC_DEFINE(HAVE_CLOCK_GETTIME, 1) AC_DEFINE(TIMEMODULE_LIB, [rt], [Library needed by timemodule.c: librt may be needed for clock_gettime()]) |