Bug 788270: OpenBSD doesn't support TLS yet. r=standard8
authorLandry Breuil <landry@openbsd.org>
Mon, 24 Sep 2012 18:47:05 +0200
changeset 13696 c3caa58362dc339037961fe20e874df2ed6de44f
parent 13695 987cb8d531508028f844fa82f91c4d7d3b73530a
child 13697 02dce7079e9589fce8df2bf36065cf0a4a31be8c
push id762
push userbugzilla@standard8.plus.com
push dateMon, 19 Nov 2012 21:16:42 +0000
treeherdercomm-beta@4a2f61509b17 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstandard8
bugs788270
Bug 788270: OpenBSD doesn't support TLS yet. r=standard8
configure.in
--- a/configure.in
+++ b/configure.in
@@ -3706,20 +3706,25 @@ AC_CACHE_CHECK(for __thread keyword for 
                [AC_TRY_LINK([__thread bool tlsIsMainThread = false;],
                             [return tlsIsMainThread;],
                             ac_cv_thread_keyword=yes,
                             ac_cv_thread_keyword=no)])
 LDFLAGS=$_SAVE_LDFLAGS
 if test "$ac_cv_thread_keyword" = yes; then
   # mips builds fail with TLS variables because of a binutils bug.
   # See bug 528687
+  # OpenBSD doesn't have TLS support, and the test succeeds with clang++
+  # See bug 788270
   case "${target}" in
     mips*-*)
       :
       ;;
+    *-openbsd*)
+      :
+      ;;
     *)
       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
       ;;
   esac
 fi
 
 dnl Check for the existence of various allocation headers/functions