From 6ebc895084055204e6358344f470f7213b8de3b5 Mon Sep 17 00:00:00 2001 From: "ro@138bc75d-0d04-0410-961f-82ee72b054a4" Date: Mon, 31 Jan 2011 14:00:46 +0000 Subject: [PATCH] * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169436 138bc75d-0d04-0410-961f-82ee72b054a4 --- ChangeLog | 5 +++++ configure | 4 +++- configure.ac | 4 +++- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1712ffbc..03a222e6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-01-31 Rainer Orth + + * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS. + * configure: Regenerate. + 2010-12-10 Iain Sandoe * powerpc_darwin_mach_dep.s: Update for m64. Add eh frames. diff --git a/configure b/configure index 78877e50..4f7490cb 100755 --- a/configure +++ b/configure @@ -14910,7 +14910,9 @@ $as_echo "#define GC_SOLARIS_PTHREADS 1" >>confdefs.h # The alternate thread library was only introduced in Solaris 8 and # became the default in Solaris 9, so no need for the special code # above otherwise. - THREADLIBS=-lpthread + # nanosleep, sched_yield, and sem_* only live in librt before + # Solaris 11. + THREADLIBS="-lpthread -lrt" ;; *-*-irix*) diff --git a/configure.ac b/configure.ac index 43be0b48..42cd4190 100644 --- a/configure.ac +++ b/configure.ac @@ -193,7 +193,9 @@ case "$THREADS" in # The alternate thread library was only introduced in Solaris 8 and # became the default in Solaris 9, so no need for the special code # above otherwise. - THREADLIBS=-lpthread + # nanosleep, sched_yield, and sem_* only live in librt before + # Solaris 11. + THREADLIBS="-lpthread -lrt" ;; *-*-irix*) AC_DEFINE(GC_IRIX_THREADS,1,[support for Irix pthreads]) -- 2.40.0