[patch] fix thread test cases for solaris.

Chris Fairles chris.fairles@gmail.com
Mon Jan 12 16:06:00 GMT 2009


Preliminary patch attached.

Take a look at acinclude.m4, besides the documentation updates, I'm
wondering what to do about setting GLIBCXX_LIBS after running the
AC_SEARCH_LIBS. Also, I'm not sure libstdcxx-librt is the right name
since these facilities can also be in posix4.

You'll notice I was trying to do something like:

+#    if test x"$ac_cv_search_clock_gettime" = x"-lposix4"
+#      || test x"$ac_cv_search_nanosleep" = x"-lposix4"
+#      || test x"$ac_cv_search_sched_yield" = x"-lposix4"; then
+#      GLIBCXX_LIBS="-lposix4"
+#    fi

which doesn't work (i really hate this syntax, whatever excuse for a
language this is ;) )

and similar for -lrt where there was a single case statement before:
     case "$ac_cv_search_clock_gettime" in
       -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
     esac

basically, I just want the union of "-l*"'s that come out of those
search lib tests (and presumably a platform could need both rt and
posix4 no?).

Chris
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libstdcxx_librt.patch.txt
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20090112/83317ad0/attachment.txt>


More information about the Libstdc++ mailing list