From 44d5fa145ca4833c907247de97f06d8d1db9f53e Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 18 Jul 2011 14:30:14 +0000 Subject: [PATCH] re PR boehm-gc/49381 (Unresolved symbols in libgcjgc.a when linking gctest) PR boehm-gc/49381 Backport from mainline: 2011-01-31 Rainer Orth * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS. * configure: Regenerate. From-SVN: r176401 --- boehm-gc/ChangeLog | 9 +++++++++ boehm-gc/configure | 4 +++- boehm-gc/configure.ac | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/boehm-gc/ChangeLog b/boehm-gc/ChangeLog index a732f1441a6b..1158f241309d 100644 --- a/boehm-gc/ChangeLog +++ b/boehm-gc/ChangeLog @@ -1,3 +1,12 @@ +2011-07-18 Rainer Orth + + PR boehm-gc/49381 + Backport from mainline: + 2011-01-31 Rainer Orth + + * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS. + * configure: Regenerate. + 2011-04-28 Release Manager * GCC 4.5.3 released. diff --git a/boehm-gc/configure b/boehm-gc/configure index 557d30583ace..df90e393cb9c 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 32c627524a77..0e247862c040 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]) -- 2.47.2