configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 31 Jan 2011 14:00:46 +0000 (14:00 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 31 Jan 2011 14:00:46 +0000 (14:00 +0000)
* configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
* configure: Regenerate.

From-SVN: r169436

boehm-gc/ChangeLog
boehm-gc/configure
boehm-gc/configure.ac

index 1712ffb..03a222e 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
+       * configure: Regenerate.
+
 2010-12-10  Iain Sandoe  <iains@gcc.gnu.org>
 
        * powerpc_darwin_mach_dep.s:  Update for m64.  Add eh frames.
index 78877e5..4f7490c 100755 (executable)
@@ -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*)
 
index 43be0b4..42cd419 100644 (file)
@@ -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])