mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
configure: Also check for clock_gettime in libpthread
libwinpthreads provides POSIX time API. It also provides libpthread alias for itself, for compatibility, so that is what we will link with. Fixes #697550
This commit is contained in:
parent
e745a2bcf0
commit
e2f2ee3582
1 changed files with 5 additions and 0 deletions
|
@ -458,6 +458,11 @@ AC_CHECK_FUNCS(clock_gettime, [], [
|
|||
AC_CHECK_LIB(rt, clock_gettime, [
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
LIBS="$LIBS -lrt"
|
||||
], [
|
||||
AC_CHECK_LIB(pthread, clock_gettime, [
|
||||
AC_DEFINE(HAVE_CLOCK_GETTIME, 1)
|
||||
LIBS="$LIBS -lpthread"
|
||||
])
|
||||
])
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in a new issue