summaryrefslogtreecommitdiff
path: root/boehm-gc
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-31 14:00:46 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2011-01-31 14:00:46 +0000
commitce062771587f6637ce09f79c36e24de691032919 (patch)
tree2b5156a658272f76e84473941c97d1d6227a2bb2 /boehm-gc
parente6937b3ac033d790b8b958c87ce1130c0ec428ac (diff)
downloadgcc-ce062771587f6637ce09f79c36e24de691032919.tar.gz
* 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
Diffstat (limited to 'boehm-gc')
-rw-r--r--boehm-gc/ChangeLog5
-rwxr-xr-xboehm-gc/configure4
-rw-r--r--boehm-gc/configure.ac4
3 files changed, 11 insertions, 2 deletions
diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog
index 1712ffbc5cd..03a222e68c2 100644
--- a/boehm-gc/ChangeLog
+++ b/boehm-gc/ChangeLog
@@ -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.
diff --git a/boehm-gc/configure b/boehm-gc/configure
index 78877e50cbc..4f7490cbcc7 100755
--- a/boehm-gc/configure
+++ b/boehm-gc/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/boehm-gc/configure.ac b/boehm-gc/configure.ac
index 43be0b4866d..42cd4190df9 100644
--- a/boehm-gc/configure.ac
+++ b/boehm-gc/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])