From ab93f90cd3a4fcdd891cee9478941c3cc65795b8 Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Tue, 30 Jun 2015 14:20:38 -0300 Subject: Test -lrt for sched_yield Apparently, this is needed in some Solaris versions. Author: Oskari Saarenmaa --- configure.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 5ef6eda06f6..21ba3a52f9f 100644 --- a/configure.in +++ b/configure.in @@ -974,6 +974,8 @@ AC_SEARCH_LIBS(shm_open, rt) AC_SEARCH_LIBS(shm_unlink, rt) # Solaris: AC_SEARCH_LIBS(fdatasync, [rt posix4]) +# Required for thread_test.c on Solaris +AC_SEARCH_LIBS(sched_yield, rt) # Required for thread_test.c on Solaris 2.5: # Other ports use it too (HP-UX) so test unconditionally AC_SEARCH_LIBS(gethostbyname_r, nsl) -- cgit v1.2.3