]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR boehm-gc/49381 (Unresolved symbols in libgcjgc.a when linking gctest)
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 18 Jul 2011 14:30:14 +0000 (14:30 +0000)
committerRainer Orth <ro@gcc.gnu.org>
Mon, 18 Jul 2011 14:30:14 +0000 (14:30 +0000)
PR boehm-gc/49381
Backport from mainline:
2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

* configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
* configure: Regenerate.

From-SVN: r176401

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

index a732f1441a6b1d7749cca87ae88b7fe0698c9350..1158f241309db91c63f85ac4d65718f1c9cdf4ad 100644 (file)
@@ -1,3 +1,12 @@
+2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       PR boehm-gc/49381
+       Backport from mainline:
+       2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * configure.ac (*-*-solaris2*): Add -lrt to THREADLIBS.
+       * configure: Regenerate.
+
 2011-04-28  Release Manager
 
        * GCC 4.5.3 released.
index 557d30583aced536b38f9c05a854ca42278793a6..df90e393cb9c7d29b74880a676b0fb52f9e580fb 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 32c627524a77b8583b73b9ebcbaf57c4dcb7b3f5..0e247862c04000051a39181584d666fbc80c0e3a 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])