diff options
author | Bruno Haible <bruno@clisp.org> | 2007-04-13 12:14:00 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-04-13 12:14:00 +0000 |
commit | 75032ae61b82138c1d1b9552eec2f96ab1040dc4 (patch) | |
tree | 9bd738443241922b20d78f2bab7cf3ec3541d117 | |
parent | e40470ec76df3044958d17e516910385bc06d5d2 (diff) | |
download | gnulib-75032ae61b82138c1d1b9552eec2f96ab1040dc4.tar.gz |
Try harder to find sched_yield on Solaris.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | modules/lock-tests | 5 | ||||
-rw-r--r-- | modules/tls-tests | 5 |
3 files changed, 14 insertions, 2 deletions
@@ -1,5 +1,11 @@ 2007-04-13 Bruno Haible <bruno@clisp.org> + * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4. + * modules/tls-tests (configure.ac): Likewise. + Reported by Arto C. Nirkko <anirkko@insel.ch>. + +2007-04-13 Bruno Haible <bruno@clisp.org> + * lib/tls.c (glthread_tls_get): Fix return type. Patch by Arto C. Nirkko <anirkko@insel.ch>. diff --git a/modules/lock-tests b/modules/lock-tests index 2e410c99a2..e4ec5cbd10 100644 --- a/modules/lock-tests +++ b/modules/lock-tests @@ -8,7 +8,10 @@ dnl Checks for special libraries for the tests/test-lock test. dnl On some systems, sched_yield is in librt, rather than in libpthread. LIBSCHED= if test $gl_threads_api = posix; then - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt]) + dnl Solaris has sched_yield in librt, not in libpthread or libc. + AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], + [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. + AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) fi AC_SUBST([LIBSCHED]) diff --git a/modules/tls-tests b/modules/tls-tests index 7868519c10..9910af59c2 100644 --- a/modules/tls-tests +++ b/modules/tls-tests @@ -8,7 +8,10 @@ dnl Checks for special libraries for the tests/test-tls test. dnl On some systems, sched_yield is in librt, rather than in libpthread. LIBSCHED= if test $gl_threads_api = posix; then - AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt]) + dnl Solaris has sched_yield in librt, not in libpthread or libc. + AC_CHECK_LIB(rt, sched_yield, [LIBSCHED=-lrt], + [dnl Solaris 2.5.1, 2.6 has sched_yield in libposix4, not librt. + AC_CHECK_LIB(posix4, sched_yield, [LIBSCHED=-lposix4])]) fi AC_SUBST([LIBSCHED]) |